java.lang.Object | |
↳ | com.urbanairship.actions.ActionRegistry |
Class responsible for runtime-persisting actions and associating them with names and predicates.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ActionRegistry.Entry | An entry in the action registry. | |||||||||
interface | ActionRegistry.Predicate | ActionArgument predicate |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ActionRegistry() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set<ActionRegistry.Entry> |
getEntries()
Gets the set of registry entries that are currently registered.
| ||||||||||
ActionRegistry.Entry |
getEntry(String name)
Gets an action entry for a given name.
| ||||||||||
ActionRegistry.Entry |
registerAction(Class<? extends Action> clazz, String... names)
Registers an action by class.
| ||||||||||
ActionRegistry.Entry |
registerAction(Action action, String... names)
Registers an action.
| ||||||||||
void |
registerDefaultActions(Context context)
Registers default actions.
| ||||||||||
void |
unregisterAction(String name)
Unregister an action from the registry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the set of registry entries that are currently registered.
Gets an action entry for a given name.
name | The name of the action |
---|
Registers an action by class.
clazz | The class to register |
---|---|
names | The names the action will be registered under |
IllegalArgumentException | If no names were provided, or if th one of the names is an empty string. |
---|
Registers an action.
If another entry is registered under specified name, it will be removed from that entry and used for the new action.
action | The action to register |
---|---|
names | The names the action will be registered under |
IllegalArgumentException | If no names were provided, or if th one of the names is an empty string. |
---|
Registers default actions.
context | The application context. |
---|
Unregister an action from the registry.
name | The name of the action. |
---|