public abstract class NacNotification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.CharSequence> |
mBody
Body text of the notification.
|
protected android.content.Context |
mContext
Context.
|
Constructor and Description |
---|
NacNotification() |
NacNotification(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected androidx.core.app.NotificationCompat.Builder |
builder()
Build the notification.
|
void |
cancel()
Cancel a previously shown notification.
|
protected android.app.NotificationChannel |
createChannel()
Create the notification channel.
|
protected boolean |
doesGroupMatch(java.lang.String groupKey) |
protected java.util.List<java.lang.CharSequence> |
getBody() |
protected java.lang.String |
getBodyLine(NacAlarm alarm) |
protected java.lang.String |
getCategory() |
protected abstract java.lang.String |
getChannelDescription() |
protected abstract java.lang.String |
getChannelId() |
protected abstract java.lang.String |
getChannelName() |
protected abstract android.app.PendingIntent |
getContentPendingIntent() |
protected abstract java.lang.String |
getContentText() |
protected android.content.Context |
getContext() |
static java.util.List<java.lang.CharSequence> |
getExtraLines(android.content.Context context,
java.lang.String groupKey) |
protected abstract java.lang.String |
getGroup() |
protected abstract int |
getId() |
protected abstract int |
getImportance() |
protected int |
getLineCount() |
protected androidx.core.app.NotificationManagerCompat |
getNotificationManager() |
protected abstract int |
getPriority() |
protected int |
getSmallIcon() |
abstract java.lang.String |
getTitle() |
protected boolean |
hasBody() |
protected void |
setupBody()
Setup the notification body lines.
|
protected void |
setupChannel()
Setup the notification channel.
|
protected void |
show()
Show the notification.
|
protected final android.content.Context mContext
protected java.util.List<java.lang.CharSequence> mBody
public NacNotification()
public NacNotification(android.content.Context context)
protected abstract java.lang.String getChannelDescription()
protected abstract java.lang.String getChannelId()
protected abstract java.lang.String getChannelName()
protected abstract android.app.PendingIntent getContentPendingIntent()
protected abstract java.lang.String getContentText()
protected abstract java.lang.String getGroup()
protected abstract int getId()
protected abstract int getImportance()
protected abstract int getPriority()
public abstract java.lang.String getTitle()
protected androidx.core.app.NotificationCompat.Builder builder()
public void cancel()
protected android.app.NotificationChannel createChannel()
protected boolean doesGroupMatch(java.lang.String groupKey)
protected java.util.List<java.lang.CharSequence> getBody()
protected java.lang.String getBodyLine(NacAlarm alarm)
protected java.lang.String getCategory()
protected android.content.Context getContext()
public static java.util.List<java.lang.CharSequence> getExtraLines(android.content.Context context, java.lang.String groupKey)
protected int getLineCount()
protected androidx.core.app.NotificationManagerCompat getNotificationManager()
protected int getSmallIcon()
protected boolean hasBody()
protected void setupBody()
protected void setupChannel()
protected void show()