Enum Class NotificationPriority

java.lang.Object
java.lang.Enum<NotificationPriority>
org.gnome.gio.NotificationPriority
All Implemented Interfaces:
Serializable, Comparable<NotificationPriority>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum NotificationPriority extends Enum<NotificationPriority> implements Enumeration
Priority levels for GNotifications.
Since:
2.42
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    for events that require more attention, usually because responses are time-sensitive (for example chat and SMS messages or alarms)
    for notifications that do not require immediate attention - typically used for contextual background information, such as contact birthdays or local weather
    the default priority, to be used for the majority of notifications (for example email messages, software updates, completed download/sync operations)
    for urgent notifications, or notifications that require a response in a short space of time (for example phone calls or emergency warnings)
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the NotificationPriority class.
    int
    Get the numeric value of this enum
    of(int value)
    Create a new NotificationPriority for the provided value
    of(MemorySegment address)
    Create a new NotificationPriority for the value in the provided memory address.
    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 Object

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

    • NORMAL

      public static final NotificationPriority NORMAL
      the default priority, to be used for the majority of notifications (for example email messages, software updates, completed download/sync operations)
    • LOW

      public static final NotificationPriority LOW
      for notifications that do not require immediate attention - typically used for contextual background information, such as contact birthdays or local weather
    • HIGH

      public static final NotificationPriority HIGH
      for events that require more attention, usually because responses are time-sensitive (for example chat and SMS messages or alarms)
    • URGENT

      public static final NotificationPriority URGENT
      for urgent notifications, or notifications that require a response in a short space of time (for example phone calls or emergency warnings)
  • Method Details

    • values

      public static NotificationPriority[] 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 NotificationPriority 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
    • of

      public static NotificationPriority of(int value)
      Create a new NotificationPriority for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static NotificationPriority of(MemorySegment address)
      Create a new NotificationPriority for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the NotificationPriority class.
      Returns:
      the GType