Media
Allow users to share device media with your custom JavaScript code.
Last updated
Was this helpful?
Allow users to share device media with your custom JavaScript code.
Last updated
Was this helpful?
Ask the user to open the camera to take a picture or select a picture from the gallery.
maxHeight
number
-
maxWidth
number
-
quality
number
-
Value between 1 and 100, controls compression level
showCameraOption
boolean
-
showGalleryOption
boolean
-
Here is a list of errors that can be thrown when calling this function in addition to :
OPERATION_CANCELLED
The user cancelled the operation.
UNKNOWN_ERROR
An error occurred while opening the camera or gallery, for example, the user may have denied permission