public class InformationProvider extends AddOnModule implements MusicResourceGenerator
PROVIDE_RESOURCE_ERROR, PROVIDE_RESOURCE_ERROR_GENERATING, PROVIDE_RESOURCE_ERROR_NOT_CAPABLE| Constructor and Description |
|---|
InformationProvider(Context context,
String ID,
MusicProvider musicProvider,
CommandHandler commandHandler)
initializes the Module
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends ResourceModel> |
announceResources() |
Optional<? extends ResourceModel> |
generateResource(ResourceModel resourceModel,
Optional<EventModel> event)
generates the resources
|
Capabilities |
getCapabilities()
gets the Capabilities of the Player
|
Playlist |
getCurrentPlaylist()
gets the current Playlist
|
Progress |
getCurrentProgress()
gets the Progress
|
PlaybackState |
getPlaybackState()
gets the PlaybackState of the Player
|
Volume |
getVolume()
gets the Volume
|
boolean |
isOutputRunning()
true if playing and false if not
|
boolean |
isPlaying()
true if playing and false if not
|
boolean |
isUsingJava()
true if using java, false if not (and for example a C-library)
|
getContext, getIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCapabilitiesResource, createNowPlayingResource, createPlaybackStateResource, createPlayerResource, createProgressResource, createTrackInfoResource, createVolumeResourcecreateUsingSoundResource, provideResourceannounceEvents, resourcesInitplayerError, playerError, startedSound, startedSound, updatePlayInfo, updatePlayInfo, updatePlayInfo, updatePlayInfo, updatePlayInfo, updateStateInfoendedSoundfire, fire, fire, fire, firedebug, debug, error, error, getContextdebug, debug, error, error, fatal, fatal, warn, warnexceptionThrownpublic InformationProvider(Context context, String ID, MusicProvider musicProvider, CommandHandler commandHandler)
context - the current ContextmusicProvider - the musicProvider to get the data fromID - the IDcommandHandler - the commandHandlerpublic List<? extends ResourceModel> announceResources()
announceResources in interface ResourceBuilderModelannounceResources in interface ResourcesProviderBaseannounceResources in interface MusicResourceGeneratorannounceResources in interface PermanentSoundResourcespublic Optional<? extends ResourceModel> generateResource(ResourceModel resourceModel, Optional<EventModel> event)
generateResource in interface ResourcesProviderBasegenerateResource in interface MusicResourceGeneratorgenerateResource in interface PermanentSoundResourcesresourceModel - the resourceModelevent - the Eventpublic Playlist getCurrentPlaylist()
getCurrentPlaylist in interface MusicProviderpublic Volume getVolume()
getVolume in interface MusicProviderpublic Progress getCurrentProgress()
getCurrentProgress in interface MusicProviderpublic Capabilities getCapabilities()
getCapabilities in interface MusicProviderpublic PlaybackState getPlaybackState()
getPlaybackState in interface MusicProviderpublic boolean isOutputRunning()
isOutputRunning in interface MusicProviderisOutputRunning in interface PermanentSoundUsedpublic boolean isPlaying()
isPlaying in interface MusicProviderpublic boolean isUsingJava()
isUsingJava in interface MusicProviderisUsingJava in interface PermanentSoundUsedCopyright © 2016. All rights reserved.