Package com.castlabs.android.player
Class SingleControllerPlaylist.AbstractPlaylistListener
- java.lang.Object
-
- com.castlabs.android.player.SingleControllerPlaylist.AbstractPlaylistListener
-
- All Implemented Interfaces:
SingleControllerPlaylist.PlaylistListener
- Enclosing class:
- SingleControllerPlaylist
public abstract static class SingleControllerPlaylist.AbstractPlaylistListener extends Object implements SingleControllerPlaylist.PlaylistListener
Utility class with empty implementations of the methods defined inSingleControllerPlaylist.PlaylistListener
-
-
Constructor Summary
Constructors Constructor Description AbstractPlaylistListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonItemChange(PlayerConfig config)Called every time a new item, defined by aPlayerConfigstarts playing.voidonPlaylistEnded()Called when the playlist reaches the end.
-
-
-
Method Detail
-
onItemChange
public void onItemChange(@NonNull PlayerConfig config)Description copied from interface:SingleControllerPlaylist.PlaylistListenerCalled every time a new item, defined by aPlayerConfigstarts playing.This method will also be called for the first element.
- Specified by:
onItemChangein interfaceSingleControllerPlaylist.PlaylistListener- Parameters:
config- The config representing the new playlist item.
-
onPlaylistEnded
public void onPlaylistEnded()
Description copied from interface:SingleControllerPlaylist.PlaylistListenerCalled when the playlist reaches the end. Fired when thePlayerController.State.Finishedis reached due to playing the last item to the end.- Specified by:
onPlaylistEndedin interfaceSingleControllerPlaylist.PlaylistListener
-
-