public class MockRemoteNotificationHandler extends java.lang.Object implements NotificationsService.RemoteNotificationHandler
Modifier and Type | Field and Description |
---|---|
static MockRemoteNotificationHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
didRegisterForRemoteNotifications(java.lang.String s)
called if the registration succeeded
|
void |
failToRegisterForRemoteNotifications(java.lang.String s)
called if an error happened during registration
|
void |
receivedRemoteNotification(java.lang.String s)
received notification.
|
public static final MockRemoteNotificationHandler INSTANCE
public void receivedRemoteNotification(java.lang.String s)
NotificationsService.RemoteNotificationHandler
receivedRemoteNotification
in interface NotificationsService.RemoteNotificationHandler
s
- A system dependent representation of the notificationpublic void failToRegisterForRemoteNotifications(java.lang.String s)
NotificationsService.RemoteNotificationHandler
failToRegisterForRemoteNotifications
in interface NotificationsService.RemoteNotificationHandler
s
- A system dependent message of the failurepublic void didRegisterForRemoteNotifications(java.lang.String s)
NotificationsService.RemoteNotificationHandler
didRegisterForRemoteNotifications
in interface NotificationsService.RemoteNotificationHandler
s
- A system dependent token you have to use to send your messages to your device