java.lang.Object | |
↳ | com.urbanairship.push.notifications.NotificationArguments.Builder |
Arguments builder.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NotificationArguments |
build()
Builds the notification arguments.
| ||||||||||
NotificationArguments.Builder |
setNotificationChannelId(String notificationChannelId)
Sets the notification channel Id.
| ||||||||||
NotificationArguments.Builder |
setNotificationId(String notificationTag, int notificationId)
Sets the notification tag and Id.
| ||||||||||
NotificationArguments.Builder |
setRequiresLongRunningTask(boolean longRunningTask)
Sets if the notification requires a long running task to generate the notification.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builds the notification arguments.
Sets the notification channel Id.
notificationChannelId | The notification channel Id. |
---|
Sets the notification tag and Id.
notificationTag | The notification tag. |
---|---|
notificationId | The notification Id. |
Sets if the notification requires a long running task to generate the notification.
If true
, the push message will be scheduled to process at a later time when the
app has more background time. If false
, the app has approximately 10 seconds to
generate the notification.
Apps that make use of this feature are highly encouraged to add RECEIVE_BOOT_COMPLETED
so
the push message will persist between device reboots.
longRunningTask | true to require a long running task, otherwise false . |
---|