Skip to content

Commit fa1adde

Browse files
committed
fix(ios): throw error on not implemented methods
1 parent a92d957 commit fa1adde

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/ui-cameraview/index.ios.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { CameraViewBase, flashModeProperty } from './index.common';
1+
import { TakePictureOptions } from '.';
2+
import { CameraViewBase, autoFocusProperty, flashModeProperty } from './index.common';
23

34
@NativeClass
45
class ProcessRawVideoSampleBufferDelegateImpl extends NSObject implements ProcessRawVideoSampleBufferDelegate {
@@ -111,16 +112,13 @@ export class CameraView extends CameraViewBase {
111112
focusAtPoint(x, y) {
112113
this.nativeViewProtected?.nextLevel?.focusAtAdjustedPointOfInterest(CGPointMake(x, y));
113114
}
114-
async takePicture(
115-
options: {
116-
savePhotoToDisk?: boolean;
117-
captureMode?: number;
118-
targetRotation?: number;
119-
flashMode?: number;
120-
pictureSize?: { width: number; height: number };
121-
} = {}
122-
) {
123-
throw new Error('not implemented');
115+
async takePicture(options: TakePictureOptions = {}) {
116+
throw new Error('Method not implemented.');
117+
// this.nativeViewProtected?.nextLevel?.capturePhoto();
118+
}
119+
120+
toggleCamera() {
121+
throw new Error('Method not implemented.');
124122
}
125123

126124
[flashModeProperty.setNative](value: string | number) {
@@ -145,4 +143,8 @@ export class CameraView extends CameraViewBase {
145143
}
146144
}
147145
}
146+
147+
[autoFocusProperty.setNative](value: boolean) {
148+
throw new Error('Method not implemented.');
149+
}
148150
}

0 commit comments

Comments
 (0)