java.lang.Object | ||
↳ | com.urbanairship.actions.Action | |
↳ | com.urbanairship.actions.OpenExternalUrlAction |
Known Direct Subclasses |
Action for opening a URL for viewing.
Accepted situations: SITUATION_PUSH_OPENED, SITUATION_WEB_VIEW_INVOCATION, SITUATION_MANUAL_INVOCATION, SITUATION_AUTOMATION, and SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON.
Accepted argument value types: URL as a string
Result value: The URI that was opened.
Default Registration Names: ^u, open_external_url_action
Default Registration Predicate: none
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_REGISTRY_NAME | Default registry name | |||||||||
String | DEFAULT_REGISTRY_SHORT_NAME | Default registry short name |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.actions.Action
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OpenExternalUrlAction()
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
acceptsArguments(ActionArguments arguments)
The open external URL action accepts Strings that can be parsed as URL argument value types.
| ||||||||||
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
Default constructor.
The open external URL action accepts Strings that can be parsed as URL argument value types.
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.