Interface RotationEventListener


  • public interface RotationEventListener
    • Method Detail

      • onRotationChanged

        void onRotationChanged​(int rotation)
        Called when the rotation of the device has changed. The listener will be updated immediately with the current device rotation, and asynchronously thereafter from a thread other than the main thread.
        Parameters:
        rotation - The new rotation of the device, one of the Surface.ROTATION_* constants.
        See Also:
        Surface