Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class AuthorizationClient(loginActivity: Activity)

AuthorizationClient provides helper methods to initialize and manage the Spotify authorization flow.

Link copied to clipboard
Link copied to clipboard

An object that helps construct the request that is sent to Spotify authorization service. To create one use AuthorizationRequest.Builder

Link copied to clipboard

An object that contains the parsed response from the Spotify authorization service. To create one use AuthorizationResponse.Builder or parse from android.net.Uri with fromUri

Link copied to clipboard

Provides an AuthorizationHandler that opens a browser when the Spotify application is not installed

Provides an AuthorizationHandler that opens the play store when the Spotify application is not installed

Link copied to clipboard
Link copied to clipboard

The activity that manages the login flow. It should not be started directly. Instead use AuthorizationClient.openLoginActivity

Link copied to clipboard
data class PKCEInformation(val verifier: String, val challenge: String, val codeChallengeMethod: String) : Parcelable
Link copied to clipboard
Link copied to clipboard
class TokenExchangeRequest(clientId: String, code: String, redirectUri: String, codeVerifier: String)

A utility class for exchanging an authorization code for an access token using PKCE verifier. This implements the OAuth 2.0 Authorization Code Grant with PKCE as specified in RFC 7636.

Link copied to clipboard

Response from a token exchange request. Contains either the access token information or error details.