Interface ChannelManager.Listener

  • Enclosing class:
    ChannelManager

    public static interface ChannelManager.Listener
    Callback interface that can be added to the manager.
    • Method Detail

      • onControllerAttached

        void onControllerAttached​(int channelIndex,
                                  @NonNull
                                  PlayerController playerController)
        Called after a new channel was selected and applied to the view. Use this for example to setup any UI control bindings or listeners to the controller
        Parameters:
        channelIndex - The channel index
        playerController - the controller
      • onControllerDetached

        void onControllerDetached​(int channelIndex,
                                  @NonNull
                                  PlayerController playerController)
        Called before the given controller is de-selected and detached from the view. Use this for example to remove and UI bindings and listeners you have previously added to a controller.
        Parameters:
        channelIndex - The channel index
        playerController - The player controller