DeviceOrientation
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
new DeviceOrientation(): DeviceOrientation
Returns DeviceOrientation
Accessors
rotation Matrix
Returns RotationMatrix
css Rotation Matrix3d
Get css string representing 3D matrix to be directly used in matrix3d() css transform rule
Returns String
quaternion
Get quaternion. See https://www.w3.org/TR/orientation-event/#example-8f884833
Returns Quaternion
requires Permission
- get requiresPermission(): boolean
Returns boolean
Methods
request Permission
start
start(): Promise<DeviceOrientation>
Returns Promise<DeviceOrientation>
stop
stop(): DeviceOrientation
Get rotation matrix. See https://www.w3.org/TR/orientation-event/#example-76d62ad0