Modifier and Type | Field | Description |
---|---|---|
static Set<Class<?>> |
APPLICATION_CLASSES |
All classes belonging to this application.
|
static TypeClass |
CLASS |
Modifier and Type | Method | Description |
---|---|---|
Track |
getCurrentTrack() |
The current playing track.
|
static Application |
getInstance() |
Returns an instance for application Spotify.
|
String |
getName() |
The name of the application.
|
double |
getPlayerPosition() |
The player’s position within the currently playing track in seconds.
|
Epls |
getPlayerState() |
Is Spotify stopped, paused, or playing?
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
int |
getSoundVolume() |
The sound output volume (0 = minimum, 100 = maximum).
|
String |
getVersion() |
The version of the application.
|
boolean |
isFrontmost() |
Is this the frontmost (active) application?
|
boolean |
isRepeating() |
Is repeating on or off?
|
boolean |
isRepeatingEnabled() |
Is repeating enabled in the current playback context?
|
boolean |
isShuffling() |
Is shuffling on or off?
|
boolean |
isShufflingEnabled() |
Is shuffling enabled in the current playback context?
|
void |
nextTrack() |
Skip to the next track.
|
void |
pause() |
Pause playback.
|
void |
play() |
Resume playback.
|
void |
playpause() |
Toggle play/pause.
|
void |
playTrack(String theUriOfTheTrackToPlay,
String theUriOfTheContextToPlayIn) |
Start playback of a track in the given context.
|
void |
previousTrack() |
Skip to the previous track.
|
void |
setPlayerPosition(double playerPosition) |
The player’s position within the currently playing track in seconds.
|
void |
setRepeating(boolean repeating) |
Is repeating on or off?
|
void |
setShuffling(boolean shuffling) |
Is shuffling on or off?
|
void |
setSoundVolume(int soundVolume) |
The sound output volume (0 = minimum, 100 = maximum).
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("command") @Name("previous track") void previousTrack()
@Kind("command") @Name("play track") void playTrack(String theUriOfTheTrackToPlay, @Parameter("in context") String theUriOfTheContextToPlayIn)
theUriOfTheTrackToPlay
- the URI of the track to playtheUriOfTheContextToPlayIn
- the URI of the context to play in@Code("pTrk") @Kind("property") @Name("current track") @Type("track") Track getCurrentTrack()
@Code("pVol") @Kind("property") @Name("sound volume") @Type("integer") int getSoundVolume()
@Code("pVol") @Kind("property") @Name("sound volume") @Type("integer") void setSoundVolume(int soundVolume)
soundVolume
- new property value@Code("pPlS") @Kind("property") @Name("player state") @Type("ePlS") Epls getPlayerState()
@Code("pPos") @Kind("property") @Name("player position") @Type("real") double getPlayerPosition()
@Code("pPos") @Kind("property") @Name("player position") @Type("real") void setPlayerPosition(double playerPosition)
playerPosition
- new property value@Code("pReE") @Kind("property") @Name("repeating enabled") @Type("boolean") boolean isRepeatingEnabled()
@Code("pRep") @Kind("property") @Name("repeating") @Type("boolean") boolean isRepeating()
@Code("pRep") @Kind("property") @Name("repeating") @Type("boolean") void setRepeating(boolean repeating)
repeating
- new property value@Code("pReE") @Kind("property") @Name("shuffling enabled") @Type("boolean") boolean isShufflingEnabled()
@Code("pShu") @Kind("property") @Name("shuffling") @Type("boolean") boolean isShuffling()
@Code("pShu") @Kind("property") @Name("shuffling") @Type("boolean") void setShuffling(boolean shuffling)
shuffling
- new property value@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pisf") @Kind("property") @Name("frontmost") @Type("boolean") boolean isFrontmost()
@Code("vers") @Kind("property") @Name("version") @Type("text") String getVersion()
Map<String,Object> getProperties()
static Application getInstance()