Enum Scope
- java.lang.Object
-
- java.lang.Enum<Scope>
-
- de.sonallux.spotify.api.authorization.Scope
-
- All Implemented Interfaces:
Serializable,Comparable<Scope>
public enum Scope extends Enum<Scope>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APP_REMOTE_CONTROLRemote control playback of Spotify.PLAYLIST_MODIFY_PRIVATEWrite access to a user's private playlists.PLAYLIST_MODIFY_PUBLICWrite access to a user's public playlists.PLAYLIST_READ_COLLABORATIVEInclude collaborative playlists when requesting a user's playlists.PLAYLIST_READ_PRIVATERead access to user's private playlists.STREAMINGControl playback of a Spotify track.UGC_IMAGE_UPLOADWrite access to user-provided images.USER_FOLLOW_MODIFYWrite/delete access to the list of artists and other users that the user follows.USER_FOLLOW_READRead access to the list of artists and other users that the user follows.USER_LIBRARY_MODIFYWrite/delete access to a user's "Your Music" library.USER_LIBRARY_READRead access to a user's library.USER_MODIFY_PLAYBACK_STATEWrite access to a user’s playback stateUSER_READ_CURRENTLY_PLAYINGRead access to a user’s currently playing content.USER_READ_EMAILRead access to user’s email address.USER_READ_PLAYBACK_POSITIONRead access to a user’s playback position in a content.USER_READ_PLAYBACK_STATERead access to a user’s player state.USER_READ_PRIVATERead access to user’s subscription details (type of user account).USER_READ_RECENTLY_PLAYEDRead access to a user’s recently played tracks.USER_TOP_READRead access to a user's top artists and tracks.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static ScopevalueOf(String name)Returns the enum constant of this type with the specified name.static Scope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APP_REMOTE_CONTROL
public static final Scope APP_REMOTE_CONTROL
Remote control playback of Spotify. This scope is currently available to Spotify iOS and Android SDKs.- See Also:
- app-remote-control
-
PLAYLIST_MODIFY_PRIVATE
public static final Scope PLAYLIST_MODIFY_PRIVATE
Write access to a user's private playlists.- See Also:
- playlist-modify-private
-
PLAYLIST_MODIFY_PUBLIC
public static final Scope PLAYLIST_MODIFY_PUBLIC
Write access to a user's public playlists.- See Also:
- playlist-modify-public
-
PLAYLIST_READ_COLLABORATIVE
public static final Scope PLAYLIST_READ_COLLABORATIVE
Include collaborative playlists when requesting a user's playlists.- See Also:
- playlist-read-collaborative
-
PLAYLIST_READ_PRIVATE
public static final Scope PLAYLIST_READ_PRIVATE
Read access to user's private playlists.- See Also:
- playlist-read-private
-
STREAMING
public static final Scope STREAMING
Control playback of a Spotify track. This scope is currently available to the Web Playback SDK. The user must have a Spotify Premium account.- See Also:
- streaming
-
UGC_IMAGE_UPLOAD
public static final Scope UGC_IMAGE_UPLOAD
Write access to user-provided images.- See Also:
- ugc-image-upload
-
USER_FOLLOW_MODIFY
public static final Scope USER_FOLLOW_MODIFY
Write/delete access to the list of artists and other users that the user follows.- See Also:
- user-follow-modify
-
USER_FOLLOW_READ
public static final Scope USER_FOLLOW_READ
Read access to the list of artists and other users that the user follows.- See Also:
- user-follow-read
-
USER_LIBRARY_MODIFY
public static final Scope USER_LIBRARY_MODIFY
Write/delete access to a user's "Your Music" library.- See Also:
- user-library-modify
-
USER_LIBRARY_READ
public static final Scope USER_LIBRARY_READ
Read access to a user's library.- See Also:
- user-library-read
-
USER_MODIFY_PLAYBACK_STATE
public static final Scope USER_MODIFY_PLAYBACK_STATE
Write access to a user’s playback state- See Also:
- user-modify-playback-state
-
USER_READ_CURRENTLY_PLAYING
public static final Scope USER_READ_CURRENTLY_PLAYING
Read access to a user’s currently playing content.- See Also:
- user-read-currently-playing
-
USER_READ_EMAIL
public static final Scope USER_READ_EMAIL
Read access to user’s email address.- See Also:
- user-read-email
-
USER_READ_PLAYBACK_POSITION
public static final Scope USER_READ_PLAYBACK_POSITION
Read access to a user’s playback position in a content.- See Also:
- user-read-playback-position
-
USER_READ_PLAYBACK_STATE
public static final Scope USER_READ_PLAYBACK_STATE
Read access to a user’s player state.- See Also:
- user-read-playback-state
-
USER_READ_PRIVATE
public static final Scope USER_READ_PRIVATE
Read access to user’s subscription details (type of user account).- See Also:
- user-read-private
-
USER_READ_RECENTLY_PLAYED
public static final Scope USER_READ_RECENTLY_PLAYED
Read access to a user’s recently played tracks.- See Also:
- user-read-recently-played
-
USER_TOP_READ
public static final Scope USER_TOP_READ
Read access to a user's top artists and tracks.- See Also:
- user-top-read
-
-
Method Detail
-
values
public static Scope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Scope c : Scope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
-
-