public interface MpnRegistrationListener
Modifier and Type | Method and Description |
---|---|
void |
registrationFailed(java.lang.Exception cause)
Notification that the device registration on GCM sercice has failed.
|
void |
registrationIdChangeFailed(java.lang.Exception cause)
Notification that the registration ID change has been tried on the Server and failed.
|
void |
registrationIdChangeSucceeded(MpnRegistrationIdChangeInfo info)
Notification that the registration ID has been successully changed on the Server.
|
void |
registrationSucceeded(java.lang.String registrationId,
MpnRegistrationIdStatus status)
Notification that the device has been successully registered on GCM service and a registration ID has
been obtained.
|
void registrationSucceeded(java.lang.String registrationId, MpnRegistrationIdStatus status)
LSClient
.registrationId
- the obtained registration IDstatus
- the MpnRegistrationIdStatus
associated with the registration ID, i.e. if it is new, changed or unchanged.void registrationFailed(java.lang.Exception cause)
LSClient
may be successfully invoked.cause
- The specific error that caused the registration to fail.void registrationIdChangeSucceeded(MpnRegistrationIdChangeInfo info)
LSClient.registerForMpn(android.content.Context, String, MpnRegistrationListener)
.
If the device token had been invalidated by the GCM service, it is now valid again and
all associated MPN subscriptions have been automatically reactivated from suspended state.info
- Additional information about the registration ID change (such as the number of reactivated MPN subscriptions).void registrationIdChangeFailed(java.lang.Exception cause)
LSClient.registerForMpn(android.content.Context, String, MpnRegistrationListener)
.
Note that the token change may fail in two situations that not necessarily denote an error condition:cause
- The specific error that caused the registration ID change to fail.