@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DeviceMotionEvent")
public class DeviceMotionEvent
extends Event
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
DeviceMotionEvent(java.lang.String type)
The DeviceMotionEvent constructor creates a new DeviceMotionEvent.
|
DeviceMotionEvent(java.lang.String type,
DeviceMotionEventInit eventInitDict)
The DeviceMotionEvent constructor creates a new DeviceMotionEvent.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceMotionEventAcceleration |
acceleration()
The acceleration property returns the amount of acceleration recorded by the device, in meters per second squared (m/s2).
|
DeviceMotionEventAcceleration |
accelerationIncludingGravity()
The accelerationIncludingGravity property returns the amount of acceleration recorded by the device, in meters per second squared (m/s2).
|
double |
interval()
Returns the interval, in milliseconds, at which data is obtained from the underlaying hardware.
|
static Promise<java.lang.String> |
requestPermission() |
DeviceMotionEventRotationRate |
rotationRate()
Returns the rate at which the device is rotating around each of its axes in degrees per second.
|
bubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typeassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic DeviceMotionEvent(@Nonnull
java.lang.String type,
@Nonnull
DeviceMotionEventInit eventInitDict)
public DeviceMotionEvent(@Nonnull
java.lang.String type)
@JsProperty(name="acceleration") @Nullable public DeviceMotionEventAcceleration acceleration()
@JsProperty(name="accelerationIncludingGravity") @Nullable public DeviceMotionEventAcceleration accelerationIncludingGravity()
@JsProperty(name="interval") public double interval()
@JsProperty(name="rotationRate") @Nullable public DeviceMotionEventRotationRate rotationRate()
@Nonnull public static Promise<java.lang.String> requestPermission()