setVolumeRestAction

fun setVolumeRestAction(volumePercent: Int, deviceId: String? = null): SpotifyRestAction<Unit>

Set the volume for the user’s current playback device.

Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope

Api Reference

Parameters

volumePercent

The volume to set. Must be a value from 0 to 100 inclusive.

deviceId

The device to play on

Sources

common source
Link copied to clipboard