public final class

ActionRegistry

extends Object
java.lang.Object
   ↳ com.urbanairship.actions.ActionRegistry

Class Overview

Class responsible for runtime-persisting actions and associating them with names and predicates.

Summary

Nested Classes
class ActionRegistry.Entry An entry in the action registry. 
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(Action action, String... names)
Registers an action.
void registerDefaultActions()
Registers default actions
void unregisterAction(String name)
Unregister an action from the registry.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ActionRegistry ()

Public Methods

public Set<ActionRegistry.Entry> getEntries ()

Gets the set of registry entries that are currently registered.

Returns
  • Set of registered entries

public ActionRegistry.Entry getEntry (String name)

Gets an action entry for a given name.

Parameters
name The name of the action
Returns
  • An Entry for the name, or null if no entry exists for the given name

public ActionRegistry.Entry registerAction (Action action, String... names)

Registers an action.

If another entry is registered under specified name, it will be removed from that entry and used for the new action.

Parameters
action The action to register
names The names the action will be registered under
Returns
  • The entry, or null if the action was unable to be registered

public void registerDefaultActions ()

Registers default actions

public void unregisterAction (String name)

Unregister an action from the registry.

Parameters
name The name of the action.