public static final class NotificationAction.Builder extends Object
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.