Package 

Class OrientationHelper


  • 
    public class OrientationHelper
    
                        

    Helps with keeping track of both device orientation (which changes when device is rotated) and the display offset (which depends on the activity orientation wrt the device default orientation).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface OrientationHelper.Callback

      Receives callback about the orientation changes.

    • Method Summary

      Modifier and Type Method Description
      void enable() Enables this listener.
      void disable() Disables this listener.
      int getLastDeviceOrientation() Returns the current device orientation.
      int getLastDisplayOffset() Returns the current display offset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait