public enum DeliveryPriority extends Enum<DeliveryPriority>
Enum Constant and Description |
---|
CONSERVE_POWER
Indicates that the APNs server should attempt to deliver a notification "at a time that conserves power on
the device receiving it."
|
IMMEDIATE
Indicates that the APNs server should attempt to deliver a notification immediately.
|
Modifier and Type | Method and Description |
---|---|
static DeliveryPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeliveryPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeliveryPriority IMMEDIATE
Indicates that the APNs server should attempt to deliver a notification immediately. Additionally, according to Apple's documentation:
The push notification must trigger an alert, sound, or badge on the device. It is an error to use this priority for a push that contains only the
content-available
key.
public static final DeliveryPriority CONSERVE_POWER
Indicates that the APNs server should attempt to deliver a notification "at a time that conserves power on the device receiving it."
public static DeliveryPriority[] values()
for (DeliveryPriority c : DeliveryPriority.values()) System.out.println(c);
public static DeliveryPriority valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2016 RelayRides. All rights reserved.