Skip to content

Commit

Permalink
fix(ios): throw error on not implemented methods
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 19, 2023
1 parent a92d957 commit fa1adde
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/ui-cameraview/index.ios.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CameraViewBase, flashModeProperty } from './index.common';
import { TakePictureOptions } from '.';
import { CameraViewBase, autoFocusProperty, flashModeProperty } from './index.common';

@NativeClass
class ProcessRawVideoSampleBufferDelegateImpl extends NSObject implements ProcessRawVideoSampleBufferDelegate {
Expand Down Expand Up @@ -111,16 +112,13 @@ export class CameraView extends CameraViewBase {
focusAtPoint(x, y) {
this.nativeViewProtected?.nextLevel?.focusAtAdjustedPointOfInterest(CGPointMake(x, y));
}
async takePicture(
options: {
savePhotoToDisk?: boolean;
captureMode?: number;
targetRotation?: number;
flashMode?: number;
pictureSize?: { width: number; height: number };
} = {}
) {
throw new Error('not implemented');
async takePicture(options: TakePictureOptions = {}) {
throw new Error('Method not implemented.');
// this.nativeViewProtected?.nextLevel?.capturePhoto();
}

toggleCamera() {
throw new Error('Method not implemented.');
}

[flashModeProperty.setNative](value: string | number) {
Expand All @@ -145,4 +143,8 @@ export class CameraView extends CameraViewBase {
}
}
}

[autoFocusProperty.setNative](value: boolean) {
throw new Error('Method not implemented.');
}
}

0 comments on commit fa1adde

Please sign in to comment.