public class

OpenRichPushInboxAction

extends Action
java.lang.Object
   ↳ com.urbanairship.actions.Action
     ↳ com.urbanairship.actions.OpenRichPushInboxAction

Class Overview

Starts an activity to display either the RichPushInbox or a RichPushMessage.

In order to view the inbox, the action will attempt to start an activity with intent action com.urbanairship.VIEW_RICH_PUSH_INBOX.

To view messages, the intent will use the action com.urbanairship.VIEW_RICH_PUSH_MESSAGE with the message ID supplied as the data in the form of message:<MESSAGE_ID>. If an activity is unable to be started, the message will attempt to be displayed in a Landing Page by using the intent action SHOW_LANDING_PAGE_INTENT_ACTION.

Accepted situations: Situation.PUSH_OPENED, Situation.WEB_VIEW_INVOCATION, Situation.MANUAL_INVOCATION, and Situation.FOREGROUND_NOTIFICATION_ACTION_BUTTON.

Accepted argument values: null to launch the inbox, the specified message ID, or "auto" to look for the message ID in the getMetadata().

Result value: null

Default Registration Names: ^mc, open_mc_action

Summary

Constants
String DEFAULT_REGISTRY_NAME Default registry name
String DEFAULT_REGISTRY_SHORT_NAME Default registry short name
String MESSAGE_ID_PLACEHOLDER
Public Constructors
OpenRichPushInboxAction()
Public Methods
boolean acceptsArguments(ActionArguments arguments)
Called before an action is performed to determine if the the action can accept the arguments.
ActionResult perform(ActionArguments arguments)
Performs the action.
[Expand]
Inherited Methods
From class com.urbanairship.actions.Action
From class java.lang.Object

Constants

public static final String DEFAULT_REGISTRY_NAME

Default registry name

Constant Value: "open_mc_action"

public static final String DEFAULT_REGISTRY_SHORT_NAME

Default registry short name

Constant Value: "^mc"

public static final String MESSAGE_ID_PLACEHOLDER

Constant Value: "auto"

Public Constructors

public OpenRichPushInboxAction ()

Public Methods

public boolean acceptsArguments (ActionArguments arguments)

Called before an action is performed to determine if the the action can accept the arguments.

Parameters
arguments The action arguments.
Returns
  • true if the action can perform with the arguments, otherwise false.

public ActionResult perform (ActionArguments arguments)

Performs the action.

Parameters
arguments The action arguments.
Returns
  • The result of the action.