Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface DeviceMotionEventRotationRate

A DeviceMotionEventRotationRate interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. Available only in secure contexts.

MDN Reference

interface DeviceMotionEventRotationRate {
    alpha: number | null;
    beta: number | null;
    gamma: number | null;
}
Index
alpha: number | null

The alpha read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second.

MDN Reference

beta: number | null

The beta read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second.

MDN Reference

gamma: number | null

The gamma read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second.

MDN Reference

Was this helpful?