java.lang.Object | ||
↳ | com.urbanairship.actions.Action | |
↳ | com.urbanairship.messagecenter.actions.MessageCenterAction |
Starts an activity to display either the Inbox
or a Message
using
either showMessageCenter()
()} or showMessageCenter(String)
.
Accepted situations: SITUATION_PUSH_OPENED, SITUATION_WEB_VIEW_INVOCATION, SITUATION_MANUAL_INVOCATION, SITUATION_AUTOMATION, 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
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_REGISTRY_NAME | Default registry name | |||||||||
String | DEFAULT_REGISTRY_SHORT_NAME | Default registry short name | |||||||||
String | MESSAGE_ID_PLACEHOLDER | Message ID place holder. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.actions.Action
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MessageCenterAction() |
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.
| ||||||||||
boolean |
shouldRunOnMainThread()
Determines which thread runs the action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.actions.Action
| |||||||||||
From class
java.lang.Object
|
Default registry name
Default registry short name
Message ID place holder. Will pull the message ID from the push metadata.
Called before an action is performed to determine if the the action can accept the arguments.
arguments | The action arguments. |
---|
true
if the action can perform with the arguments,
otherwise false
.
Performs the action.
arguments | The action arguments. |
---|
Determines which thread runs the action.
true
if the action should be run on the main thread, or false
if the
action should run on a background thread.