java.lang.Object | |
↳ | com.urbanairship.actions.ActionRegistry.Entry |
An entry in the action registry.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Action |
getActionForSituation(int situation)
Returns an action for a given situation.
| ||||||||||
Action |
getDefaultAction()
Gets the default action
| ||||||||||
List<String> |
getNames()
Gets the list of registered names for the entry
| ||||||||||
ActionRegistry.Predicate |
getPredicate()
Gets the predicate for the entry.
| ||||||||||
void |
setDefaultAction(Action action)
Sets the default action.
| ||||||||||
void |
setPredicate(ActionRegistry.Predicate predicate)
Sets the predicate for the entry.
| ||||||||||
void |
setSituationOverride(int situation, Action action)
Adds an action to be used instead of the default action for a
given situation.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns an action for a given situation.
situation | Situation for the entry |
---|
Gets the list of registered names for the entry
Gets the predicate for the entry.
Sets the default action.
action | The default action for the entry |
---|
Sets the predicate for the entry.
predicate | A predicate for the entry |
---|
Adds an action to be used instead of the default action for a given situation.
situation | The situation to override |
---|---|
action | Action for the situation |