Package com.castlabs.sdk.channels
Interface ChannelManager.Listener
-
- Enclosing class:
- ChannelManager
public static interface ChannelManager.ListenerCallback interface that can be added to the manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonControllerAttached(int channelIndex, PlayerController playerController)Called after a new channel was selected and applied to the view.voidonControllerDetached(int channelIndex, PlayerController playerController)Called before the given controller is de-selected and detached from the view.
-
-
-
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 indexplayerController- 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 indexplayerController- The player controller
-
-