Liking cljdoc? Tell your friends :D

web.mobile.DeviceMotionEvent

The DeviceMotionEvent provides web developers with information the speed of changes for the device's position and orientation.

The DeviceMotionEvent provides web developers with information
the speed of changes for the device's position and orientation.
raw docstring

accelerationcljs

(acceleration this)

Property.

[Read Only]

The acceleration property returns the amount of acceleration by the device, in meters per second squared (m/s2).

var acceleration = deviceMotionEvent.acceleration;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration

Property.

[Read Only]

The acceleration property returns the amount of acceleration
by the device, in meters per second squared (m/s2).

`var acceleration = deviceMotionEvent.acceleration;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration`
sourceraw docstring

acceleration-including-gravitycljs

(acceleration-including-gravity this)

Property.

[Read Only]

The accelerationIncludingGravity property returns the amount acceleration recorded by the device, in meters per second squared Unlike DeviceMotionEvent.acceleration which compensates for influence of gravity, its value is the sum of the acceleration the device as induced by the user and the acceleration caused gravity.

var acceleration = deviceMotionEvent.accelerationIncludingGravity;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity

Property.

[Read Only]

The accelerationIncludingGravity property returns the amount
acceleration recorded by the device, in meters per second squared
Unlike `DeviceMotionEvent.acceleration` which compensates for
influence of gravity, its value is the sum of the acceleration
the device as induced by the user and the acceleration caused
gravity.

`var acceleration = deviceMotionEvent.accelerationIncludingGravity;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity`
sourceraw docstring

constructorcljs

(constructor & args)

Constructor.

The DeviceMotionEvent constructor creates a new web.mobile.DeviceMotionEvent.

type Must be "devicemotion". optionsOptional Options are as follows:

acceleration: An object giving the acceleration of the device on the three axis X, Y and Z. Acceleration is expressed in m/s2. accelerationIncludingGravity: An object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. Acceleration is expressed in m/s2. rotationRate: An object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. Rotation rate is express in degrees per seconds. interval: A number representing the interval of time, in milliseconds, at which data is obtained from the device.

See also: https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent

Constructor.

The DeviceMotionEvent constructor creates a new `web.mobile.DeviceMotionEvent`.

type
Must be \"devicemotion\".
optionsOptional
Options are as follows:

acceleration: An object giving the acceleration of the device on the three axis X, Y and Z. Acceleration is expressed in m/s2.
accelerationIncludingGravity: An object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. Acceleration is expressed in m/s2.
rotationRate: An object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. Rotation rate is express in degrees per seconds.
interval: A number representing the interval of time, in milliseconds, at which data is obtained from the device.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent`
sourceraw docstring

intervalcljs

(interval this)

Property.

[Read Only]

Returns the interval, in milliseconds, at which data is obtained the underlaying hardware. You can use this to determine the granularity motion events.

var interval = deviceMotionEvent.interval;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/interval

Property.

[Read Only]

Returns the interval, in milliseconds, at which data is obtained
the underlaying hardware. You can use this to determine the granularity
motion events.

`var interval = deviceMotionEvent.interval;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/interval`
sourceraw docstring

rotation-ratecljs

(rotation-rate this)

Property.

[Read Only]

Returns the rate at which the device is rotating around each its axes in degrees per second.

var rotationRate = deviceMotionEvent.rotationRate;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/rotationRate

Property.

[Read Only]

Returns the rate at which the device is rotating around each
its axes in degrees per second.

`var rotationRate = deviceMotionEvent.rotationRate;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/rotationRate`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close