HUBActionFactory

@protocol HUBActionFactory <NSObject>

Protocol used to define factories that create Hub Framework actions

You implement a factory to integrate actions with the framework. Each factory is registered for a certain namespace with HUBActionRegistry, and will be invoked when an action identifier with the matching namespace was encountered as part of the handling of an event.

  • Create an action for a certain name

    Return nil if the name is unrecognized by this factory

    Declaration

    Objective-C

    - (nullable id<HUBAction>)createActionForName:(nonnull NSString *)name;

    Parameters

    name

    The name of the action to create