onChanged
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.
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
azimuthChange
the delta between last rotation and the current rotation around the Z axis
pitchChange
the delta between last rotation and the current rotation around the X axis
rollChange
the delta between last rotation and the current rotation around the Y axis