Interface PushNotificationServiceListener
-
public interface PushNotificationServiceListenerInterface that can be used to retrieve status updates from thePushNotificationService. One or more listeners can be registered withPushNotificationServiceto retrieve status updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPushNotificationServiceDisabled(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType)Reports that the push notification service has been successfully closed or its work was interrupted, for example by a network or server problem.voidonPushNotificationServiceEnabled(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType)Reports that the push notification service has successfully started or restored.voidonPushNotificationServiceFailed(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType, PushNotificationProcessingError error)Reports that the Push Notification service failed.
-
-
-
Method Detail
-
onPushNotificationServiceEnabled
void onPushNotificationServiceEnabled(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType)
Reports that the push notification service has successfully started or restored.- Parameters:
pushNotificationService- thePushNotificationServiceobject that the callback is associated with.pushNotificationServiceType- service type.- See Also:
onPushNotificationServiceDisabled(PushNotificationService, PushNotificationServiceType),PushNotificationService.getTelephonyEventServiceStatus()
-
onPushNotificationServiceDisabled
void onPushNotificationServiceDisabled(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType)
Reports that the push notification service has been successfully closed or its work was interrupted, for example by a network or server problem.- Parameters:
pushNotificationService- thePushNotificationServiceobject that the callback is associated with.pushNotificationServiceType- service type.- See Also:
onPushNotificationServiceEnabled(PushNotificationService, PushNotificationServiceType),PushNotificationService.getTelephonyEventServiceStatus()
-
onPushNotificationServiceFailed
void onPushNotificationServiceFailed(PushNotificationService pushNotificationService, PushNotificationServiceType pushNotificationServiceType, PushNotificationProcessingError error)
Reports that the Push Notification service failed.- Parameters:
pushNotificationService- thePushNotificationServiceobject that the callback is associated with.pushNotificationServiceType- service type.error- Error object describing the reason for the failure.- See Also:
PushNotificationProcessingError
-
-