public interface ConnectApi
SpotifyAppRemote.getConnectApi()
SpotifyAppRemote
Modifier and Type | Method and Description |
---|---|
CallResult<Empty> |
connectDecreaseVolume()
Decrease volume by a step size determined by Spotify Connect.
|
CallResult<Empty> |
connectIncreaseVolume()
Increase volume by a step size determined by Spotify Connect.
|
CallResult<Empty> |
connectSetVolume(float volume)
Set a volume on the currently active device via Spotify Connect.
|
CallResult<Empty> |
connectSwitchToLocalDevice()
Switch music to play on this (local) device, in case it is playing on another device (such as
a computer) over Spotify Connect.
|
Subscription<VolumeState> |
subscribeToVolumeState()
Introduced in
com.spotify.protocol.client.RequiredFeatures#FEATURES_V3 |
@Nonnull CallResult<Empty> connectSwitchToLocalDevice()
Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
@Nonnull CallResult<Empty> connectSetVolume(float volume)
Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
volume
- Volume value ranging from 0.0 to 1.0, where 0.0 is mute and 1.0 is full volume.@Nonnull CallResult<Empty> connectIncreaseVolume()
Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
@Nonnull CallResult<Empty> connectDecreaseVolume()
Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
@Nonnull Subscription<VolumeState> subscribeToVolumeState()
com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
Subscription
to VolumeState
of the currently active device over
Spotify Connect.