public class Push
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Push.OnFailure |
static interface |
Push.OnPushNotification |
static interface |
Push.OnSuccess |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANDROID |
protected Push.OnFailure |
onFailure |
protected Push.OnPushNotification |
onPushNotification |
protected Push.OnSuccess |
onSuccess |
| Modifier | Constructor and Description |
|---|---|
protected |
Push(Session session) |
| Modifier and Type | Method and Description |
|---|---|
protected PushNotificationsDeviceServiceWrapper |
getService() |
Push |
onFailure(Push.OnFailure onFailure) |
Push |
onPushNotification(Push.OnPushNotification onPushNotification) |
Push |
onSuccess(Push.OnSuccess onSuccess) |
void |
register(android.content.Context context,
java.lang.String senderId) |
void |
register(java.lang.String registrationId) |
void |
send(java.util.List<java.lang.Long> toUserIds,
org.json.JSONObject pushNotification) |
void |
send(long toUserId,
org.json.JSONObject pushNotification) |
protected void |
setGoogleServices(GoogleServices googleServices) |
void |
unregister(java.lang.String registrationId) |
void |
unsubscribe() |
static Push |
with(Session session) |
Push |
withPortalVersion(int portalVersion) |
public static final java.lang.String ANDROID
protected Push.OnFailure onFailure
protected Push.OnPushNotification onPushNotification
protected Push.OnSuccess onSuccess
public static Push with(Session session)
public Push onFailure(Push.OnFailure onFailure)
public Push onPushNotification(Push.OnPushNotification onPushNotification)
public Push onSuccess(Push.OnSuccess onSuccess)
public void register(android.content.Context context,
java.lang.String senderId)
throws java.lang.Exception
java.lang.Exceptionpublic void register(java.lang.String registrationId)
throws java.lang.Exception
java.lang.Exceptionpublic void send(java.util.List<java.lang.Long> toUserIds,
org.json.JSONObject pushNotification)
throws java.lang.Exception
java.lang.Exceptionpublic void send(long toUserId,
org.json.JSONObject pushNotification)
throws java.lang.Exception
java.lang.Exceptionpublic void unregister(java.lang.String registrationId)
throws java.lang.Exception
java.lang.Exceptionpublic void unsubscribe()
public Push withPortalVersion(int portalVersion)
protected PushNotificationsDeviceServiceWrapper getService()
protected void setGoogleServices(GoogleServices googleServices)