public enum MpnDeviceStatus extends java.lang.Enum<MpnDeviceStatus>
Active: the MPN device is active (its MPN subscriptions are sending notifications);
Suspended: the MPN device has been suspended due to invalidation of the registration ID by GCM service.
Activevalue is the common status of an MPN device. Active MPN subscriptions related to this device are sending their mobile push notifications (i.e. cloud messages) as usual.
Suspendedstatus indicates the device is temporarily not active, but it will be reactivated as soon as a registration ID change is notified to the Server. This status is reversible and usually requires no action. See
LSClient.registerForMpn(android.content.Context, String, MpnRegistrationListener)for more information. Note that a suspended device may be deactivated (and hence deleted) by the Server, if no registration ID change is notified within a timeout period (by default a week).
MpnSubscription.checkStatus()for a device with no more active or triggered subscriptions will result in an
PushUserExceptionwith error code 45 (device unknown).
|Enum Constant and Description|
MPN device status indicating that the device is active (its MPN subscriptions do send notifications).
MPN device status indicating that the device has been suspended due to invalidation of the registration ID by the GCM service.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final MpnDeviceStatus Active
public static final MpnDeviceStatus Suspended
public static MpnDeviceStatus values()
for (MpnDeviceStatus c : MpnDeviceStatus.values()) System.out.println(c);
public static MpnDeviceStatus valueOf(java.lang.String name)
name- the name of the enum constant to be returned.
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null