public enum PlaybackBitrate extends Enum<PlaybackBitrate>
Enum Constant and Description |
---|
BITRATE_HIGH
Set bitrate to 320 kbit/s.
|
BITRATE_LOW
Set the playback bitrate to 96 kbit/s.
|
BITRATE_NORMAL
Set the playback bitrate to 160 kbit/s.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static PlaybackBitrate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlaybackBitrate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlaybackBitrate BITRATE_LOW
public static final PlaybackBitrate BITRATE_NORMAL
SpotifyPlayer.setPlaybackBitrate(com.spotify.sdk.android.player.Player.OperationCallback, PlaybackBitrate)
to change it.public static final PlaybackBitrate BITRATE_HIGH
public static PlaybackBitrate[] values()
for (PlaybackBitrate c : PlaybackBitrate.values()) System.out.println(c);
public static PlaybackBitrate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()