rotationRate property

DeviceMotionEventRotationRate? get rotationRate

The rotationRate read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second.

Note: If the hardware isn't capable of providing this information, this property returns null.

Implementation

external DeviceMotionEventRotationRate? get rotationRate;