Package com.spotify.sdk.android.auth
Class AuthorizationResponse
java.lang.Object
com.spotify.sdk.android.auth.AuthorizationResponse
- All Implemented Interfaces:
Parcelable
An object that contains the parsed response from the Spotify authorization service.
To create one use
AuthorizationResponse.Builder or
parse from Uri with fromUri(android.net.Uri)- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse this builder to create anAuthorizationResponsestatic enumThe type of the authorization response.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object> -
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic AuthorizationResponseParses the URI returned from the Spotify accounts service.getCode()getError()intgetState()getType()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
AuthorizationResponse
-
-
Method Details
-
fromUri
Parses the URI returned from the Spotify accounts service.- Parameters:
uri- URI- Returns:
- Authorization response. If parsing failed, this object will be populated with the given error codes.
-
getType
-
getCode
-
getAccessToken
-
getState
-
getError
-
getExpiresIn
public int getExpiresIn() -
getRefreshToken
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-