HUBAsyncActionDelegate

@protocol HUBAsyncActionDelegate <NSObject>

Delegate protocol used by HUBAsyncAction types to notify the Hub Framework when they finish

  • Notify the Hub Framework that an asynchronous action finished

    Call this method whenever an asynchronous action finished doing its work, to enable the Hub Framework to release it from memory. You can also (optionally) at this point chain the action that was finished to another, by supplying an action identifier and any custom data. This enables you to create chains of logic from actions.

    Declaration

    Objective-C

    - (void)actionDidFinish:(nonnull id<HUBAsyncAction>)action
        chainToActionWithIdentifier:(nullable HUBIdentifier *)nextActionIdentifier
                         customData:(nullable NSDictionary<NSString *, id> *)
                                        nextActionCustomData;

    Parameters

    action

    The action that was finished

    nextActionIdentifier

    The identifier of any action to chain this action to. Any action matching this identifier will immediately be invoked, optionally with the given custom data.

    nextActionCustomData

    Any custom data to pass to the next action that this one chains to