Page Summary
-
NotificationAction.Builder is a builder for NotificationAction.
-
It has a public constructor with no arguments.
-
It has public methods to build a NotificationAction, set the intent action, set the content description, and set the icon's resource ID.
A builder for NotificationAction.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| NotificationAction |
build()
Builds a
NotificationAction.
|
| NotificationAction.Builder | |
| NotificationAction.Builder |
setContentDescription(String
contentDescription)
Sets the content description that is used for accessibility.
|
| NotificationAction.Builder |
setIconResId(int iconResId)
Sets the icon's resource ID.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public NotificationAction build ()
Builds a
NotificationAction.
public NotificationAction.Builder setAction (String action)
Sets the intent action.
Throws
| IllegalArgumentException | If action is null or an empty string. |
|---|
public NotificationAction.Builder setContentDescription (String contentDescription)
Sets the content description that is used for accessibility.
Throws
| IllegalArgumentException | If contentDescription is null or an empty string. |
|---|
public NotificationAction.Builder setIconResId (int iconResId)
Sets the icon's resource ID.