Functional Load Result Handler
class FunctionalLoadResultHandler @JvmOverloads constructor(trackLoadedConsumer: Consumer<TrackLoaded>?, playlistLoadedConsumer: Consumer<PlaylistLoaded>? = null, searchResultConsumer: Consumer<SearchResult>? = null, noMatchesHandler: Runnable? = null, loadFailedConsumer: Consumer<LoadFailed>? = null) : AbstractAudioLoadResultHandler
Helper class for creating an AbstractAudioLoadResultHandler using only methods that can be passed as lambdas.
Parameters
track Loaded Consumer
gets called when a track has loaded
playlist Loaded Consumer
gets called when a playlist has loaded
search Result Consumer
gets called when a search result has loaded
no Matches Handler
gets called when there are no matches for your input
load Failed Consumer
gets called in case of a load failure
Constructors
Link copied to clipboard
constructor(trackLoadedConsumer: Consumer<TrackLoaded>?, playlistLoadedConsumer: Consumer<PlaylistLoaded>? = null, searchResultConsumer: Consumer<SearchResult>? = null, noMatchesHandler: Runnable? = null, loadFailedConsumer: Consumer<LoadFailed>? = null)