public class NacMissedAlarmNotification extends NacNotification
mBody, mContext
Constructor and Description |
---|
NacMissedAlarmNotification() |
NacMissedAlarmNotification(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected androidx.core.app.NotificationCompat.Builder |
builder()
Build the notification.
|
protected android.app.NotificationChannel |
createChannel()
Create the notification channel.
|
NacAlarm |
getAlarm() |
java.lang.String |
getBodyLine(NacAlarm alarm) |
protected java.lang.String |
getChannelDescription() |
protected java.lang.String |
getChannelId() |
protected java.lang.String |
getChannelName() |
protected android.app.PendingIntent |
getContentPendingIntent() |
protected java.lang.String |
getContentText() |
protected java.lang.String |
getGroup() |
protected int |
getId() |
protected int |
getImportance() |
protected int |
getPriority() |
java.lang.String |
getTitle() |
void |
setAlarm(NacAlarm alarm)
Set the alarm.
|
protected void |
setupBody()
Setup the notification body lines.
|
void |
show()
Show the notification.
|
cancel, doesGroupMatch, getBody, getCategory, getContext, getExtraLines, getLineCount, getNotificationManager, getSmallIcon, hasBody, setupChannel
public NacMissedAlarmNotification()
public NacMissedAlarmNotification(android.content.Context context)
protected androidx.core.app.NotificationCompat.Builder builder()
NacNotification
builder
in class NacNotification
NacNotification.builder()
protected android.app.NotificationChannel createChannel()
NacNotification
createChannel
in class NacNotification
NacNotification.createChannel()
public NacAlarm getAlarm()
public java.lang.String getBodyLine(NacAlarm alarm)
getBodyLine
in class NacNotification
NacNotification.getBodyLine(NacAlarm)
protected java.lang.String getChannelDescription()
getChannelDescription
in class NacNotification
NacNotification.getChannelDescription()
protected java.lang.String getChannelName()
getChannelName
in class NacNotification
NacNotification.getChannelName()
protected java.lang.String getChannelId()
getChannelId
in class NacNotification
NacNotification.getChannelId()
protected android.app.PendingIntent getContentPendingIntent()
getContentPendingIntent
in class NacNotification
NacNotification.getContentPendingIntent()
protected java.lang.String getContentText()
getContentText
in class NacNotification
NacNotification.getContentText()
protected java.lang.String getGroup()
getGroup
in class NacNotification
NacNotification.getGroup()
protected int getId()
getId
in class NacNotification
NacNotification.getId()
protected int getImportance()
getImportance
in class NacNotification
NacNotification.getImportance()
protected int getPriority()
getPriority
in class NacNotification
NacNotification.getPriority()
public java.lang.String getTitle()
getTitle
in class NacNotification
NacNotification.getTitle()
public void setAlarm(NacAlarm alarm)
protected void setupBody()
NacNotification
setupBody
in class NacNotification
NacNotification.setupBody()
public void show()
NacNotification
show
in class NacNotification
NacNotification.show()