Module com.gluonhq.attach.display
Package com.gluonhq.attach.display
Enum Class DisplayService.Notch
- All Implemented Interfaces:
Serializable
,Comparable<DisplayService.Notch>
,Constable
- Enclosing interface:
- DisplayService
Possible Notch positions
- Since:
- 3.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe notch is located at the bottom of the screen, with the device held upright and in portrait mode but upside downThe notch is located at the left of the screen, with the device held upright and in landscape modeThe notch is located at the right of the screen, with the device held upright and in landscape modeThe notch is located at the top of the screen, with the device held upright and in portrait modeThere is no notch present or its location is unknown -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayService.Notch
Returns the enum constant of this class with the specified name.static DisplayService.Notch[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
The notch is located at the top of the screen, with the device held upright and in portrait mode -
BOTTOM
The notch is located at the bottom of the screen, with the device held upright and in portrait mode but upside down -
LEFT
The notch is located at the left of the screen, with the device held upright and in landscape mode -
RIGHT
The notch is located at the right of the screen, with the device held upright and in landscape mode -
UNKNOWN
There is no notch present or its location is unknown
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-