public static interface RotationMonitor.Listener
| Modifier and Type | Method and Description | 
|---|---|
void | 
onChanged(int orientation,
         float azimuth,
         float pitch,
         float roll,
         float azimuthChange,
         float pitchChange,
         float rollChange)
This method will be called by  
RotationMonitor whenever a rotation change is detected. | 
void | 
onDetected(int orientation,
          float azimuth,
          float pitch,
          float roll)
This method will be called by  
RotationMonitor the host device position is first detected. | 
void onDetected(int orientation,
                float azimuth,
                float pitch,
                float roll)
RotationMonitor the host device position is first detected.orientation - the current orientation of the host device.azimuth - the current rotation around the Z axispitch - the current rotation around the X axisroll - the current rotation around the Y axisvoid onChanged(int orientation,
               float azimuth,
               float pitch,
               float roll,
               float azimuthChange,
               float pitchChange,
               float rollChange)
RotationMonitor whenever a rotation change is detected.orientation - the current orientation of the host device.azimuth - the current rotation around the Z axispitch - the current rotation around the X axisroll - the current rotation around the Y axisazimuthChange - the delta between last rotation and  the current rotation around the Z axispitchChange - the delta between last rotation and  the current rotation around the X axisrollChange - the delta between last rotation and  the current rotation around the Y axis