package cordova-plugin-device-motion

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type acceleration = private Ojs.t
val acceleration_x : acceleration -> int
val acceleration_y : acceleration -> int
val acceleration_z : acceleration -> int
val acceleration_timestanp : acceleration -> Js_date.t
type options = private Ojs.t
val create_options : ?frequency:int -> unit -> options
val get_current_acceleration : (acceleration -> unit) -> (unit -> unit) -> unit
val watch_acceleration : (acceleration -> unit) -> (unit -> unit) -> options -> int
val clear_watch : int -> unit