Enum Class DisplayService.Notch

java.lang.Object
java.lang.Enum<DisplayService.Notch>
com.gluonhq.attach.display.DisplayService.Notch
All Implemented Interfaces:
Serializable, Comparable<DisplayService.Notch>, Constable
Enclosing interface:
DisplayService

public static enum DisplayService.Notch extends Enum<DisplayService.Notch>
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 Constants
    Enum Constant
    Description
    The notch is located at the bottom of the screen, with the device held upright and in portrait mode but upside down
    The notch is located at the left of the screen, with the device held upright and in landscape mode
    The notch is located at the right of the screen, with the device held upright and in landscape mode
    The notch is located at the top of the screen, with the device held upright and in portrait mode
    There is no notch present or its location is unknown
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • TOP

      public static final DisplayService.Notch TOP
      The notch is located at the top of the screen, with the device held upright and in portrait mode
    • BOTTOM

      public static final DisplayService.Notch BOTTOM
      The notch is located at the bottom of the screen, with the device held upright and in portrait mode but upside down
    • LEFT

      public static final DisplayService.Notch LEFT
      The notch is located at the left of the screen, with the device held upright and in landscape mode
    • UNKNOWN

      public static final DisplayService.Notch UNKNOWN
      There is no notch present or its location is unknown
  • Method Details

    • values

      public static DisplayService.Notch[] 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

      public static DisplayService.Notch valueOf(String name)
      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 name
      NullPointerException - if the argument is null