Package com.eatthepath.pushy.apns.util
Enum InterruptionLevel
- All Implemented Interfaces:
Serializable
,Comparable<InterruptionLevel>
,java.lang.constant.Constable
An enumeration of interruption levels that may be specified in a notification payload. Interruption levels are
supported in iOS 15 and newer.
- Since:
- 0.15
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAccording to Apple's Human Interface Guidelines, anactive
notification contains "information people might appreciate knowing about when it arrives, like a score update on their favorite sports team." If no interruption level is specified, the notification is assumed to have anactive
interruption level.According to Apple's Human Interface guidelines, acritical
notification contains: …urgent information about personal health and public safety that directly impacts the user and demands their immediate attention.According to Apple's Human Interface Guidelines, apassive
notification contains "information people can view at their leisure, like a restaurant recommendation."According to Apple's Human Interface Guidelines, atime-sensitive
notification contains "information that directly impacts the user and requires their immediate attention, like an account security issue or a package delivery." -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static InterruptionLevel
Returns the enum constant of this type with the specified name.static InterruptionLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PASSIVE
According to Apple's Human Interface Guidelines, apassive
notification contains "information people can view at their leisure, like a restaurant recommendation." -
ACTIVE
According to Apple's Human Interface Guidelines, anactive
notification contains "information people might appreciate knowing about when it arrives, like a score update on their favorite sports team." If no interruption level is specified, the notification is assumed to have anactive
interruption level. -
TIME_SENSITIVE
According to Apple's Human Interface Guidelines, atime-sensitive
notification contains "information that directly impacts the user and requires their immediate attention, like an account security issue or a package delivery." -
CRITICAL
According to Apple's Human Interface guidelines, acritical
notification contains:…urgent information about personal health and public safety that directly impacts the user and demands their immediate attention. Critical notifications are extremely rare and typically come from governmental and public agencies or healthcare apps. You must get an entitlement to use the Critical interruption level.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-