@nativescript-community/ui-cameraview
Version:
A CameraView allowing custom live processing for NativeScript
41 lines (40 loc) • 1.65 kB
TypeScript
import { TakePictureOptions } from '.';
import { CameraViewBase } from './index.common';
export declare function deviceHasCamera(): boolean;
export declare class CameraView extends CameraViewBase {
autoFocus: boolean;
refreshCameraDelay: number;
nativeViewProtected: com.nativescript.cameraview.CameraView;
createNativeView(): com.nativescript.cameraview.CameraView;
_processor: com.nativescript.cameraview.ImageAnalysisCallback;
listener: com.nativescript.cameraview.CameraEventListener;
get processor(): com.nativescript.cameraview.ImageAnalysisCallback;
set processor(value: com.nativescript.cameraview.ImageAnalysisCallback);
get minZoom(): number;
get maxZoom(): number;
get neutralZoom(): number;
initNativeView(): void;
private _frameChangeCount;
addEventListener(arg: string, callback: any, thisArg?: any): void;
removeEventListener(arg: string, callback: any, thisArg?: any): void;
createProcessor(): void;
detachProcessor(): void;
onLoaded(): void;
onUnloaded(): void;
disposeNativeView(): void;
startPreview(): void;
stopPreview(): void;
toggleCamera(): void;
photoListeners: {
onCameraError(param0: string, error: any): any;
onCameraPhotoImage(image: any, info: any): any;
onCameraPhotoImageProxy(image: any, processor: any): any;
onCameraClose(): any;
onCameraPhoto(file: any): any;
}[];
takePicture(options?: TakePictureOptions): Promise<unknown>;
getAllAvailablePictureSizes(): any;
getCurrentResolutionInfo(): any;
startAutoFocus(): void;
focusAtPoint(x: any, y: any): void;
}