public class NotificationMgrHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private android.content.Context |
context |
static int |
ID |
private android.app.NotificationManager |
notificationMgr |
Constructor and Description |
---|
NotificationMgrHelper(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
android.app.Notification.Builder |
builder()
.
|
android.support.v7.app.NotificationCompat.Builder |
builderCompat()
.
|
void |
cancel(int id) |
void |
cancelAll() |
android.app.NotificationManager |
notificationMgr() |
void |
notify(int id,
android.app.Notification notification) |
void |
notify(int id,
java.lang.String contentTitle,
java.lang.String contentText,
int smallIcon) |
void |
notify(java.lang.String contentTitle,
java.lang.String contentText,
int smallIcon) |
private final android.app.NotificationManager notificationMgr
private final android.content.Context context
public static final int ID
public NotificationMgrHelper(@NonNull android.content.Context context)
public android.app.NotificationManager notificationMgr()
public void notify(int id, android.app.Notification notification)
public void cancel(int id)
public void cancelAll()
public void notify(int id, java.lang.String contentTitle, java.lang.String contentText, @DrawableRes int smallIcon)
public void notify(java.lang.String contentTitle, java.lang.String contentText, @DrawableRes int smallIcon)
public android.support.v7.app.NotificationCompat.Builder builderCompat()
Build.VERSION_CODES
public android.app.Notification.Builder builder()
Build.VERSION_CODES