HUBLiveServiceDelegate

@protocol HUBLiveServiceDelegate <NSObject>

Delegate protocol for HUBLiveService

Implement this to recieve view controllers created by the service (using JSON passed from the hublive command line application).

  • Sent to the delegate whenever the live service created a new view controller

    The live service will reuse any existing view controller if possible. The service does not retain the view controllers it creates. Whenever this method is called, you should perform any manual configuration of the view controller you wish to do, then push it onto your app’s navigation stack.

    Declaration

    Objective-C

    - (void)liveService:(nonnull id<HUBLiveService>)liveService
        didCreateViewController:(nonnull HUBViewController *)viewController;

    Parameters

    liveService

    The live service in question

    viewController

    The view controller that was created