NotificationAction.Builder

public static final class NotificationAction.Builder extends Object

A builder for NotificationAction.

Public Constructor Summary

Public Method Summary

NotificationAction
NotificationAction.Builder
setAction(String action)
Sets the intent action.
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 NotificationAction.Builder ()

Public Methods

public NotificationAction build ()

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.