Package io.nevernull.mobileui
Interface DisplayService
-
public interface DisplayService
Inject → Service that lets you get information about the system's display
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DisplayService.DisplayInfo
Information about the device's displaystatic class
DisplayService.Orientation
Enumeration describing the device's orientation
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DisplayService.Orientation
getCurrentOrientation()
Returns the main display's current orientationDisplayService.DisplayInfo
getMainDisplayInfo()
Returns onDisplayService.DisplayInfo
object with information about the app's default display.
-
-
-
Method Detail
-
getMainDisplayInfo
@Nonnull DisplayService.DisplayInfo getMainDisplayInfo()
Returns onDisplayService.DisplayInfo
object with information about the app's default display. Note: On orientation changes, width and height or switched.- Returns:
- a
DisplayService.DisplayInfo
object with information about the * app's default display
-
getCurrentOrientation
@Nonnull DisplayService.Orientation getCurrentOrientation()
Returns the main display's current orientation- Returns:
- the main display's current orientation
-
-