Package com.castlabs.android.player

# Interface SingleControllerPlaylist.PlaylistListener

All Known Implementing Classes:
  `SingleControllerPlaylist.AbstractPlaylistListener`

Enclosing class:
  `SingleControllerPlaylist`

public static interface SingleControllerPlaylist.PlaylistListener
Playlist-related events listener.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onItemChange(PlayerConfig config)`
  Called every time a new item, defined by a `PlayerConfig` starts playing.
  `void`
  `onPlaylistEnded()`
  Called when the playlist reaches the end.

- ## Method Details

  - ### onItemChange

    void onItemChange(@NonNull PlayerConfig config)
    Called every time a new item, defined by a `PlayerConfig` starts playing.

    This method will also be called for the first element.

    Parameters:
      `config` - The config representing the new playlist item.

  - ### onPlaylistEnded

    void onPlaylistEnded()
    Called when the playlist reaches the end. Fired when the `PlayerController.State.Finished` is reached due to playing the last item to the end.