public class

NotificationActionButtonInfo

extends Object
java.lang.Object
   ↳ com.urbanairship.push.NotificationActionButtonInfo

Class Overview

Notification action button info.

Summary

Public Constructors
NotificationActionButtonInfo(String buttonId, boolean isForeground, Bundle remoteInput, String description)
Default constructor.
Public Methods
String getButtonId()
Returns the button's ID.
String getDescription()
The action's description.
Bundle getRemoteInput()
Remote input associated with the notification action.
boolean isForeground()
If the button should trigger a foreground action or not.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NotificationActionButtonInfo (String buttonId, boolean isForeground, Bundle remoteInput, String description)

Default constructor.

Parameters
buttonId The button id.
isForeground true if the action should bring the app to the foreground, otherwise false.
remoteInput The remote input.
description The description.

Public Methods

public String getButtonId ()

Returns the button's ID.

Returns
  • The button's ID.

public String getDescription ()

The action's description.

Returns
  • The action's description.

public Bundle getRemoteInput ()

Remote input associated with the notification action. Only available if the action button defines LocalizableRemoteInput and the button was triggered from an Android Wear device or Android N.

Returns
  • The remote input associated with the action button or null.

public boolean isForeground ()

If the button should trigger a foreground action or not.

Returns
  • true if the action should trigger a foreground action, otherwise false.

public String toString ()