onDetected

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.

Parameters

orientation

the current orientation of the host device.

azimuth

the current rotation around the Z axis

pitch

the current rotation around the X axis

roll

the current rotation around the Y axis