Module: Camera

Members


<static> DestinationType :number

Defines the output format of Camera.getPicture call.
Note: On iOS passing DestinationType.NATIVE_URI along with
PictureSourceType.PHOTOLIBRARY or PictureSourceType.SAVEDPHOTOALBUM will
disable any image modifications (resize, quality change, cropping, etc.) due
to implementation specific.

Type:
  • number
Properties:
Name Type Default Description
DATA_URL number 0

Return base64 encoded string. DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI or NATIVE_URI if possible

FILE_URI number 1

Return file uri (content://media/external/images/media/2 for Android)

NATIVE_URI number 2

Return native uri (eg. asset-library://... for iOS)

Source:

<static> Direction :number

Type:
  • number
Properties:
Name Type Default Description
BACK number 0

Use the back-facing camera

FRONT number 1

Use the front-facing camera

Source:

<static> EncodingType :number

Type:
  • number
Properties:
Name Type Default Description
JPEG number 0

Return JPEG encoded image

PNG number 1

Return PNG encoded image

Source:

<static> MediaType :number

Type:
  • number
Properties:
Name Type Default Description
PICTURE number 0

Allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType

VIDEO number 1

Allow selection of video only, ONLY RETURNS URL

ALLMEDIA number 2

Allow selection from all media types

Source:

<static> PictureSourceType :number

Defines the output format of Camera.getPicture call.
Note: On iOS passing PictureSourceType.PHOTOLIBRARY or PictureSourceType.SAVEDPHOTOALBUM
along with DestinationType.NATIVE_URI will disable any image modifications (resize, quality
change, cropping, etc.) due to implementation specific.

Type:
  • number
Properties:
Name Type Default Description
PHOTOLIBRARY number 0

Choose image from the device's photo library (same as SAVEDPHOTOALBUM for Android)

CAMERA number 1

Take picture from camera

SAVEDPHOTOALBUM number 2

Choose image only from the device's Camera Roll album (same as PHOTOLIBRARY for Android)

Source:

<static> PopoverArrowDirection :number

Matches iOS UIPopoverArrowDirection constants to specify arrow location on popover.

Type:
  • number
Properties:
Name Type Default Description
ARROW_UP number 1
ARROW_DOWN number 2
ARROW_LEFT number 4
ARROW_RIGHT number 8
ARROW_ANY number 15
Source: