package cordova-plugin-qrscanner

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error_type =
  1. | Unexpected_error
  2. | Camera_access_denied
  3. | Camera_access_restricted
  4. | Back_camera_unavailable
  5. | Front_camera_unavailable
  6. | Camera_unavailable
  7. | Scan_canceled
  8. | Light_unavailable
  9. | Open_settings_unavailable
type error = private Ojs.t
val message : error -> string
val code : error -> error_type
val name : error -> string
type camera =
  1. | Front
  2. | Back
type status = private Ojs.t
val authorized : status -> bool
val denied : status -> bool
val restricted : status -> bool
val prepared : status -> bool
val scanning : status -> bool
val previewing : status -> bool
val webview_background_is_transparent : status -> bool
val light_enabled : status -> bool
val can_open_settings : status -> bool
val can_enable_light : status -> bool
val current_camera : status -> camera
val prepare : (error option -> status -> unit) -> unit
val scan : (error option -> string -> unit) -> unit
val cancel_scan : (status -> unit) -> unit
val show : (status -> unit) -> unit
val hide : (status -> unit) -> unit
val enable_light : (error option -> status -> unit) -> unit
val disable_light : (error option -> status -> unit) -> unit
val use_camera : camera -> (error option -> status -> unit) -> unit
val use_front_camera : (error option -> status -> unit) -> unit
val use_back_camera : (error option -> status -> unit) -> unit
val pause_preview : (status -> unit) -> unit
val resume_preview : (status -> unit) -> unit
val open_settings : (error option -> status -> unit) -> unit
val get_status : (status -> unit) -> unit
val destroy : (status -> unit) -> unit
OCaml

Innovation. Community. Security.