package cordova-plugin-device-orientation

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type options = private Ojs.t
val create_options : ?frequency:int -> ?filter:float -> unit -> options
type heading = private Ojs.t
val heading_magnetic_heading : heading -> float
val heading_true_heading : heading -> float
val heading_heading_accuracy : heading -> float
val heading_timestamp : heading -> int
type error = private Ojs.t
type type_error =
  1. | Compass_internal_error
  2. | Compass_not_supported
val error_code : error -> type_error
val get_current_heading : (heading -> unit) -> (error -> unit) -> unit
val watch_heading : (heading -> unit) -> (error -> unit) -> ?options:options -> unit -> int
val clear_watch : int -> unit
OCaml

Innovation. Community. Security.