java.lang.Object | |
↳ | com.urbanairship.actions.ActionRegistry.Entry |
An entry in the action registry.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addSituationOverride(Action action, Situation situation)
Adds an action to be used instead of the default action for a
given situation.
| ||||||||||
Action |
getActionForSituation(Situation 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
| ||||||||||
Predicate<ActionArguments> |
getPredicate()
Gets the predicate for the entry.
| ||||||||||
void |
setDefaultAction(Action action)
Sets the default action.
| ||||||||||
void |
setPredicate(Predicate<ActionArguments> predicate)
Sets the predicate for the entry.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds an action to be used instead of the default action for a given situation.
action | Action for the situation |
---|---|
situation | The situation to override |
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.
The action must not be null.action | The default action for the entry |
---|
Sets the predicate for the entry.
predicate | A predicate for the entry |
---|