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
Modifier and TypeClassDescriptionstatic class
Use this builder to create anAuthorizationResponse
static enum
The 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
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static AuthorizationResponse
Parses the URI returned from the Spotify accounts service.getCode()
getError()
int
getState()
getType()
void
writeToParcel
(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() -
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-