java.lang.Object | |
↳ | com.urbanairship.push.notifications.NotificationActionButton.Builder |
Builds the NotificationAction.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(String buttonId)
Set the buttonId.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NotificationActionButton.Builder |
addRemoteInput(LocalizableRemoteInput remoteInput)
Add a remoteInput.
| ||||||||||
NotificationActionButton |
build()
Builds and return the notification action.
| ||||||||||
NotificationActionButton.Builder |
extend(NotificationCompat.Action.Extender extender)
Extends the notification action.
| ||||||||||
NotificationActionButton.Builder |
setDescription(String description)
Sets the description of the action.
| ||||||||||
NotificationActionButton.Builder |
setIcon(int iconId)
Set the icon.
| ||||||||||
NotificationActionButton.Builder |
setLabel(int labelId)
Set the label from a string resource.
| ||||||||||
NotificationActionButton.Builder |
setLabel(String label)
Set the label.
| ||||||||||
NotificationActionButton.Builder |
setPerformsInForeground(boolean isForegroundAction)
Set the isForegroundAction flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Add a remoteInput.
remoteInput | A LocalizableRemoteInput value. |
---|
Builds and return the notification action.
Extends the notification action.
extender | A NotificationCompat.Action.Extender value. |
---|
Sets the description of the action. Used for analytics.
description | The action description. |
---|
Set the icon.
Note: All notification icons should be entirely white on a transparent background.
iconId | An int value. |
---|
Set the label from a string resource.
labelId | An int value. |
---|
Set the label.
label | The label. |
---|
Set the isForegroundAction flag. Defaults to true.
isForegroundAction | A boolean value. |
---|