public class NotificationUtils
extends java.lang.Object
| Constructor and Description |
|---|
NotificationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend) |
static void |
addOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend) |
static void |
addOnNotificationReceivedListeners(OnNotificationReceivedListener listener) |
static EasypushNotification |
getDefaultNotification(android.content.Context c,
org.json.JSONObject message) |
static android.content.Intent |
getLaunchIntentOnNotification(android.content.Context c) |
static void |
preventAllOnAfterLaunchNotification(android.content.Context c,
android.app.Notification notification,
org.json.JSONObject jsonMessage) |
static void |
preventAllOnBeforeLaunchNotification(android.content.Context c,
NotificationCompat.Builder notificationBuilder,
org.json.JSONObject jsonMessage) |
static void |
preventAllOnNotificationRegistrationIdReceivedListeners(org.json.JSONObject message) |
static void |
registerDefaultNotification(android.content.Context c,
java.lang.Class<? extends EasypushNotification> notificationClass) |
static void |
removeOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend) |
static void |
removeOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend) |
static void |
removeOnNotificationReceivedListener(OnNotificationReceivedListener listener) |
static void |
setLaunchIntentOnNotification(android.content.Context c,
android.content.Intent i) |
static void |
unregisterDefaultNotification(android.content.Context c) |
public static void registerDefaultNotification(android.content.Context c,
java.lang.Class<? extends EasypushNotification> notificationClass)
public static void unregisterDefaultNotification(android.content.Context c)
public static EasypushNotification getDefaultNotification(android.content.Context c, org.json.JSONObject message)
public static void setLaunchIntentOnNotification(android.content.Context c,
android.content.Intent i)
public static android.content.Intent getLaunchIntentOnNotification(android.content.Context c)
public static void addOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend)
public static void removeOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend)
public static void preventAllOnBeforeLaunchNotification(android.content.Context c,
NotificationCompat.Builder notificationBuilder,
org.json.JSONObject jsonMessage)
public static void addOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend)
public static void removeOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend)
public static void preventAllOnAfterLaunchNotification(android.content.Context c,
android.app.Notification notification,
org.json.JSONObject jsonMessage)
public static void addOnNotificationReceivedListeners(OnNotificationReceivedListener listener)
public static void removeOnNotificationReceivedListener(OnNotificationReceivedListener listener)
public static void preventAllOnNotificationRegistrationIdReceivedListeners(org.json.JSONObject message)