Module device_orientation

Module device_orientation 

Source

Structs§

Orientation
Device orientation angles in degrees.

Functions§

get_orientation
Reads the current device orientation angles.
on_changed
Registers a callback for deviceOrientationChanged event.
on_failed
Registers a callback for deviceOrientationFailed event.
on_started
Registers a callback for deviceOrientationStarted event.
on_stopped
Registers a callback for deviceOrientationStopped event.
start
Starts the device orientation sensor.
stop
Stops the device orientation sensor.