Package com.castlabs.sdk.channels
Interface ChannelManager.Listener
- Enclosing class:
- ChannelManager
public static interface ChannelManager.Listener
Callback interface that can be added to the manager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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 indexplayerController
- the controller
-
onControllerDetached
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 indexplayerController
- The player controller
-