public void broadcastAvailablePlaylists ( Supplier < List < String > > availablePlaylist , Function < String , Playlist > playlistForNameFunction ) { if ( availablePlaylist == null || playlistForNameFunction == null ) return ; this . availablePlaylist = availablePlaylist ; this . playlistForNameFunction = playlistForNameFunction ; capabilities . setBroadcasting ( true ) ; }
adds the ability to return the available playlists on request .