Interface CameraOptions

Index

Properties

Properties

optional public allowEdit?: boolean

Allow simple editing of image before selection.

optional public cameraDirection?: number

Choose the camera to use (front- or back-facing). Defined in navigator.camera.Direction

optional public correctOrientation?: boolean

Rotate the image to correct for the orientation of the device during capture.

optional public destinationType?: number

Choose the format of the return value. Defined in navigator.camera.DestinationType DATA_URL : 0, Return image as base64-encoded string FILE_URI : 1, Return image file URI NATIVE_URI : 2 Return image native URI (e.g., assets-library:// on iOS or content:// on Android)

optional public encodingType?: number

Choose the returned image file's encoding. Defined in navigator.camera.EncodingType JPEG : 0 Return JPEG encoded image PNG : 1 Return PNG encoded image

optional public mediaType?: number

Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in nagivator.camera.MediaType PICTURE: 0 allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType VIDEO: 1 allow selection of video only, WILL ALWAYS RETURN FILE_URI ALLMEDIA : 2 allow selection from all media types

optional public popoverOptions?: CameraPopoverOptions

iOS-only options that specify popover location in iPad. Defined in CameraPopoverOptions.

optional public quality?: number

Picture quality in range o-100

optional public saveToPhotoAlbum?: boolean

Save the image to the photo album on the device after capture.

optional public sourceType?: number

Set the source of the picture. Defined in navigator.camera.PictureSourceType PHOTOLIBRARY : 0, CAMERA : 1, SAVEDPHOTOALBUM : 2

optional public targetHeight?: number

Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.

optional public targetWidth?: number

Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.