Listener

interface Listener

Defines the contract of listener that can receive notifications about device rotation changes.

Functions

Link copied to clipboard
abstract fun onChanged(orientation: Int, azimuth: Float, pitch: Float, roll: Float, azimuthChange: Float, pitchChange: Float, rollChange: Float)
This method will be called by RotationMonitor whenever a rotation change is detected.
Link copied to clipboard
abstract fun onDetected(orientation: Int, azimuth: Float, pitch: Float, roll: Float)
This method will be called by RotationMonitor the host device position is first detected.