package cordova-plugin-camera

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type destination_type =
  1. | Data_url
  2. | File_uri
  3. | Native_uri
val data_url : destination_type
val file_uri : destination_type
val native_uri : destination_type
type encoding_type =
  1. | Jpeg
  2. | Png
val jpeg : encoding_type
val png : encoding_type
type media_type =
  1. | Picture
  2. | Video
  3. | Allmedia
val picture : media_type
val video : media_type
val allmedia : media_type
type picture_source_type =
  1. | Photolibrary
  2. | Camera
  3. | Saved_photo_album
val photo_library : picture_source_type
val source_camera : picture_source_type
val saved_photo_album : picture_source_type
type pop_over_array_direction =
  1. | Arrow_up
  2. | Arrow_down
  3. | Arrow_left
  4. | Arrow_right
  5. | Arrow_any
val arrow_down : pop_over_array_direction
val arrow_left : pop_over_array_direction
val arrow_right : pop_over_array_direction
type direction =
  1. | Back
  2. | Front
val back : direction
val front : direction
type camera_pop_over_options = private Ojs.t
val create_camera_pop_over_options : ?x:int -> ?y:int -> ?width:int -> ?height:int -> ?arrow_dir:pop_over_array_direction -> unit -> camera_pop_over_options
type options = private Ojs.t
val create_options : ?quality:int -> ?destination_type:destination_type -> ?source_type:picture_source_type -> ?allow_edit:bool -> ?encoding_type:encoding_type -> ?target_width:int -> ?target_height:int -> ?media_type:media_type -> ?correct_orientation:bool -> ?save_to_photo_album:bool -> ?pop_over_options:camera_pop_over_options option -> ?camera_direction:direction -> unit -> options
val get_picture : (string -> unit) -> (string -> unit) -> ?opt:options -> unit -> unit
val clean_up : ?succ_cb:(unit -> unit) -> ?err_cb:(unit -> unit) -> unit -> unit