FunctionalLoadResultHandler

constructor(trackLoadedConsumer: Consumer<TrackLoaded>?, playlistLoadedConsumer: Consumer<PlaylistLoaded>? = null, searchResultConsumer: Consumer<SearchResult>? = null, noMatchesHandler: Runnable? = null, loadFailedConsumer: Consumer<LoadFailed>? = null)

Parameters

trackLoadedConsumer

gets called when a track has loaded

playlistLoadedConsumer

gets called when a playlist has loaded

searchResultConsumer

gets called when a search result has loaded

noMatchesHandler

gets called when there are no matches for your input

loadFailedConsumer

gets called in case of a load failure