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.
int getLabel()
This method is deprecated. Use getLabel(Context) instead.
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.
[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 int getLabel ()

This method is deprecated.
Use getLabel(Context) instead.

Gets the button's label ID.

Returns
  • The button's label ID as an int.

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.