Interface ChannelManager.Listener

Enclosing class:
ChannelManager

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

    Modifier and Type
    Method
    Description
    void
    onControllerAttached(int channelIndex, PlayerController playerController)
    Called after a new channel was selected and applied to the view.
    void
    onControllerDetached(int channelIndex, PlayerController playerController)
    Called before the given controller is de-selected and detached from the view.
  • Method Details

    • 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