UNPKG

@nativescript-community/ui-cameraview

Version:

A CameraView allowing custom live processing for NativeScript

55 lines (54 loc) 2.63 kB
import { TakePictureOptions } from '.'; import { CameraViewBase, aspectRatioProperty, autoFocusProperty, captureModeProperty, enablePinchZoomProperty, flashModeProperty, frontMirroredProperty, jpegQualityProperty, pictureSizeProperty, saveToGalleryProperty, stretchProperty, zoomProperty } from './index.common'; export declare function deviceHasCamera(): boolean; export declare class CameraView extends CameraViewBase { [enablePinchZoomProperty.setNative]: (value: boolean) => void; [autoFocusProperty.setNative]: (value: boolean) => void; [saveToGalleryProperty.setNative]: (value: boolean) => void; [captureModeProperty.setNative]: (value: number) => void; [pictureSizeProperty.setNative]: (value: { width: number; height: number; } | `${number}x${number}`) => void; [jpegQualityProperty.setNative]: (value: number) => void; [zoomProperty.setNative]: (value: number) => void; [stretchProperty.setNative]: (value: any) => void; [aspectRatioProperty.setNative]: (value: any) => void; [frontMirroredProperty.setNative]: (value: any) => void; [flashModeProperty.setNative]: (value: string | number) => void; 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; }