import { CameraPreview } from '@ionic-native/camera-preview' ; export interface CameraPreviewDimensions { /** The width of the camera preview, default to window.screen.width */ width ? : number ; /** The height of the camera preview, default to window.screen.height */ height ? : number ; } export interface CameraPreviewOptions { /** The left edge in pixels, default 0 */ x ? : number ; /** The top edge in pixels, default 0 */ y ? : number ; /** The width in pixels, default window.screen.width */ width ? : number ; /** The height in pixels, default window.screen.height */ height ? : number ; /** Choose the camera to use 'front' or 'rear', default 'front' */ camera ? : string ; /** Tap to take a photo, default true (picture quality by default : 85) */ tapPhoto ? : boolean ; /** Preview box drag across the screen, default 'false' */ previewDrag ? : boolean ; /** Preview box to the back of the webview (true => back, false => front) , default false */ toBack ? : boolean ; /** Alpha channel of the preview box, float, [0,1], default 1 */ alpha ? : number ; } export interface CameraPreviewPictureOptions { /** The width in pixels, default 0 */ width ? : number ; /** The height in pixels, default 0 */ height ? : number ; /** The picture quality, 0 - 100, default 85 */ quality ? : number ; } export class CameraPreviewMock extends CameraPreview { FOCUS_MODE : { FIXED : string ; AUTO : string ; CONTINUOUS : string ; CONTINUOUS_PICTURE : string ; CONTINUOUS_VIDEO : string ; EDOF : string ; INFINITY : string ; MACRO : string ; } ; EXPOSURE_MODE : { LOCK : string ; AUTO : string ; CONTINUOUS : string ; CUSTOM : string ; } ; FLASH_MODE : { OFF : string ; ON : string ; AUTO : string ; RED_EYE : string ; TORCH : string ; } ; COLOR_EFFECT : { AQUA : string ; BLACKBOARD : string ; MONO : string ; NEGATIVE : string ; NONE : string ; POSTERIZE : string ; SEPIA : string ; SOLARIZE : string ; WHITEBOARD : string ; } ; CAMERA_DIRECTION : { BACK : string ; FRONT : string ; } ; param { CameraPreviewOptions } options return { Promise < any > } startCamera ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } stopCamera ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } switchCamera ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } hide ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } show ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param options { CameraPreviewPictureOptions } return { Promise < any > } takePicture ( options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; static param { string } effect return { Promise < any > } setColorEffect ( effect ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param zoom { number } return { Promise < any > } setZoom ( zoom ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getMaxZoom ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getZoom ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param dimensions { CameraPreviewDimensions } return { Promise < any > } setPreviewSize ( dimensions ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getFocusMode ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param focusMode { string } return { Promise < any > } setFocusMode ( focusMode ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getSupportedFocusModes ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getFlashMode ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param flashMode { string } return { Promise < any > } setFlashMode ( flashMode ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getSupportedFlashModes ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getSupportedPictureSizes ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getExposureMode ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getExposureModes ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param lock { string } return { Promise < any > } setExposureMode ( lock ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getExposureCompensation ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param exposureCompensation { number } return { Promise < any > } setExposureCompensation ( exposureCompensation ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getExposureCompensationRange ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param xPoint { number } param yPoint { number } return { Promise < any > } tapToFocus ( xPoint , yPoint ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }