public class NacUpcomingAlarmNotification extends NacNotification
mBody, mContext| Constructor and Description |
|---|
NacUpcomingAlarmNotification() |
NacUpcomingAlarmNotification(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.
|
java.util.List<NacAlarm> |
getAlarmList() |
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 |
setAlarmList(java.util.List<NacAlarm> alarmList)
Set the alarm list.
|
protected void |
setupBody()
Setup the notification body lines.
|
void |
show()
Show the notification.
|
cancel, doesGroupMatch, getBody, getBodyLine, getCategory, getContext, getExtraLines, getLineCount, getNotificationManager, getSmallIcon, hasBody, setupChannelpublic NacUpcomingAlarmNotification()
public NacUpcomingAlarmNotification(android.content.Context context)
protected androidx.core.app.NotificationCompat.Builder builder()
NacNotificationbuilder in class NacNotificationNacNotification.builder()protected android.app.NotificationChannel createChannel()
NacNotificationcreateChannel in class NacNotificationNacNotification.createChannel()public java.util.List<NacAlarm> getAlarmList()
protected java.lang.String getChannelDescription()
getChannelDescription in class NacNotificationNacNotification.getChannelDescription()protected java.lang.String getChannelName()
getChannelName in class NacNotificationNacNotification.getChannelName()protected java.lang.String getChannelId()
getChannelId in class NacNotificationNacNotification.getChannelId()protected android.app.PendingIntent getContentPendingIntent()
getContentPendingIntent in class NacNotificationNacNotification.getContentPendingIntent()protected java.lang.String getContentText()
getContentText in class NacNotificationNacNotification.getContentText()protected java.lang.String getGroup()
getGroup in class NacNotificationNacNotification.getGroup()protected int getId()
getId in class NacNotificationNacNotification.getId()protected int getImportance()
getImportance in class NacNotificationNacNotification.getImportance()protected int getPriority()
getPriority in class NacNotificationNacNotification.getPriority()public java.lang.String getTitle()
getTitle in class NacNotificationNacNotification.getTitle()public void setAlarmList(java.util.List<NacAlarm> alarmList)
protected void setupBody()
NacNotificationsetupBody in class NacNotificationNacNotification.setupBody()public void show()
NacNotificationshow in class NacNotificationNacNotification.show()