public class

NotificationActionButton

extends Object
java.lang.Object
   ↳ com.urbanairship.push.notifications.NotificationActionButton

Class Overview

Model object encapsulating the data relevant to a notification action button.

Summary

Nested Classes
class NotificationActionButton.Builder Builds the NotificationAction. 
Public Methods
String getDescription()
Gets the button's description.
Bundle getExtras()
Gets the button's extras.
int getIcon()
Gets the button's icon.
String getId()
Gets the button's ID.
String getLabel(Context context)
Gets the button's label.
List<LocalizableRemoteInput> getRemoteInputs()
Gets the remote inputs.
boolean isForegroundAction()
Flag that indicates if it is a foreground action.
static NotificationActionButton.Builder newBuilder(String buttonId)
Creates a new Builder from a button ID.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getDescription ()

Gets the button's description.

Returns
  • The button's description.

public Bundle getExtras ()

Gets the button's extras.

Returns
  • The extras as a Bundle.

public int getIcon ()

Gets the button's icon.

Returns
  • The button's icon as an int.

public String getId ()

Gets the button's ID.

Returns
  • The button's ID as a string.

public String getLabel (Context context)

Gets the button's label.

Returns
  • The button's label.

public List<LocalizableRemoteInput> getRemoteInputs ()

Gets the remote inputs.

Returns
  • A list of remote inputs.

public boolean isForegroundAction ()

Flag that indicates if it is a foreground action.

Returns
  • true if it is a foreground action, otherwise false.

public static NotificationActionButton.Builder newBuilder (String buttonId)

Creates a new Builder from a button ID.

Parameters
buttonId The button identifier.
Returns
  • A new builder.