public class NotificationHelper
extends java.lang.Object
| Constructor and Description |
|---|
NotificationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cancel(int notificationId) |
static void |
cancel(LocalNotification notification) |
static void |
cancelAll() |
static void |
destroy() |
static java.util.List<LocalNotification> |
getAll() |
static void |
init(java.lang.Class<?> callerClass,
android.content.Context context,
java.lang.String defaultTitle,
int defaultIcon) |
static boolean |
isScheduled(int notificationId) |
static void |
schedule(int notificationId,
java.lang.String channelId,
int smallIcon,
int largeIcon,
java.lang.String textTitle,
java.lang.String textContent,
long delay,
boolean isRepeat) |
static void |
schedule(int notificationId,
java.lang.String textContent,
long delay,
boolean isRepeat) |
public static void init(java.lang.Class<?> callerClass,
android.content.Context context,
java.lang.String defaultTitle,
@DrawableRes
int defaultIcon)
public static void schedule(int notificationId,
java.lang.String textContent,
long delay,
boolean isRepeat)
public static void schedule(int notificationId,
java.lang.String channelId,
@DrawableRes
int smallIcon,
@DrawableRes
int largeIcon,
java.lang.String textTitle,
java.lang.String textContent,
long delay,
boolean isRepeat)
public static java.util.List<LocalNotification> getAll()
public static void cancel(int notificationId)
public static void cancel(LocalNotification notification)
public static void cancelAll()
public static boolean isScheduled(int notificationId)
public static void destroy()