HUBComponentActionObserver

@protocol HUBComponentActionObserver <HUBComponent>

Extended component protocol that adds the ability to observe whenever an action was performed

You can use this protocol to be able to react to an action being performed in your component.

See HUBComponent and HUBAction for more information.

  • Sent to a component whenever an action was performed in the view that it is being used in

    The Hub Framework will call this method on your component every time that an action was performed in the view that it is being used in, including both default selection actions & custom ones.

    Declaration

    Objective-C

    - (void)actionPerformedWithContext:(nonnull id<HUBActionContext>)context;

    Parameters

    context

    The contextual object that the action was performed with