public class AbstractPush
This class defines the behaviour of a Push implementation, and should be extended within the library to support with new providers.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPush.PushRegistration
This class manages metadata necessary for registering a device for push notifications.
|
class |
AbstractPush.RegisterPush
Request object for posting to the REST endpoint to register a user for push notifications
|
class |
AbstractPush.UnregisterPush
Request object for posting to REST endpoint to unregister a user from push notifications
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Client<T> |
client |
java.lang.Class |
pushServiceClass |
Constructor and Description |
---|
AbstractPush() |
Modifier and Type | Method and Description |
---|---|
void |
disablePush() |
void |
disablePushViaRest()
Async wrapper for disabling push notifications for the current user
|
void |
enablePushViaRest()
Async wrapper for enabling push notification for the current user
|
Client<T> |
getClient() |
java.lang.String |
getPushId() |
java.lang.Class |
getPushServiceClass() |
java.lang.String[] |
getSenderIDs() |
AbstractPush |
initialize() |
boolean |
isInProduction() |
boolean |
isPushEnabled() |
void |
setPushServiceClass() |
public static java.lang.String TAG
public java.lang.Class pushServiceClass
public AbstractPush initialize()
public java.lang.String getPushId()
public boolean isPushEnabled()
public void disablePush()
public boolean isInProduction()
public java.lang.String[] getSenderIDs()
public void enablePushViaRest()
Async wrapper for enabling push notification for the current user
public void disablePushViaRest()
Async wrapper for disabling push notifications for the current user
public java.lang.Class getPushServiceClass()
public void setPushServiceClass()