eu.easypush.pushlibrary.utils
Class NotificationUtils
java.lang.Object
eu.easypush.pushlibrary.utils.NotificationUtils
public class NotificationUtils
- extends java.lang.Object
|
Method Summary |
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 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 |
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 |
setLaunchIntentOnNotification(android.content.Context c,
android.content.Intent i)
|
static void |
unregisterDefaultNotification(android.content.Context c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationUtils
public NotificationUtils()
registerDefaultNotification
public static void registerDefaultNotification(android.content.Context c,
java.lang.Class<? extends EasypushNotification> notificationClass)
unregisterDefaultNotification
public static void unregisterDefaultNotification(android.content.Context c)
getDefaultNotification
public static EasypushNotification getDefaultNotification(android.content.Context c,
org.json.JSONObject message)
setLaunchIntentOnNotification
public static void setLaunchIntentOnNotification(android.content.Context c,
android.content.Intent i)
getLaunchIntentOnNotification
public static android.content.Intent getLaunchIntentOnNotification(android.content.Context c)
addOnBeforeLaunchNotification
public static void addOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend)
removeOnBeforeLaunchNotification
public static void removeOnBeforeLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnBeforeLaunchNotification> onBeforeSend)
preventAllOnBeforeLaunchNotification
public static void preventAllOnBeforeLaunchNotification(android.content.Context c,
NotificationCompat.Builder notificationBuilder,
org.json.JSONObject jsonMessage)
addOnAfterLaunchNotification
public static void addOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend)
removeOnAfterLaunchNotification
public static void removeOnAfterLaunchNotification(android.content.Context c,
java.lang.Class<? extends OnAfterLaunchNotification> onAfterSend)
preventAllOnAfterLaunchNotification
public static void preventAllOnAfterLaunchNotification(android.content.Context c,
android.app.Notification notification,
org.json.JSONObject jsonMessage)