Package com.brightcove.player.video360
Interface RotationMonitor.Listener
- Enclosing class:
- RotationMonitor
public static interface RotationMonitor.Listener
Defines the contract of listener that can receive notifications about device rotation changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonChanged(int orientation, float azimuth, float pitch, float roll, float azimuthChange, float pitchChange, float rollChange) This method will be called byRotationMonitorwhenever a rotation change is detected.voidonDetected(int orientation, float azimuth, float pitch, float roll) This method will be called byRotationMonitorthe host device position is first detected.
-
Method Details
-
onDetected
void onDetected(int orientation, float azimuth, float pitch, float roll) This method will be called byRotationMonitorthe host device position is first detected.- Parameters:
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 axis
-
onChanged
void onChanged(int orientation, float azimuth, float pitch, float roll, float azimuthChange, float pitchChange, float rollChange) This method will be called byRotationMonitorwhenever a rotation change is detected.- Parameters:
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
-