File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1- import { CameraViewBase , flashModeProperty } from './index.common' ;
1+ import { TakePictureOptions } from '.' ;
2+ import { CameraViewBase , autoFocusProperty , flashModeProperty } from './index.common' ;
23
34@NativeClass
45class 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}
You can’t perform that action at this time.
0 commit comments