Package com.spotify.sdk.android.auth
Class AuthorizationRequest.Builder
- java.lang.Object
-
- com.spotify.sdk.android.auth.AuthorizationRequest.Builder
-
- Enclosing class:
- AuthorizationRequest
public static class AuthorizationRequest.Builder extends java.lang.Object
Use this builder to create anAuthorizationRequest
- See Also:
AuthorizationRequest
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String clientId, AuthorizationResponse.Type responseType, java.lang.String redirectUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationRequest
build()
AuthorizationRequest.Builder
setCampaign(java.lang.String campaign)
AuthorizationRequest.Builder
setCustomParam(java.lang.String key, java.lang.String value)
AuthorizationRequest.Builder
setScopes(java.lang.String[] scopes)
AuthorizationRequest.Builder
setShowDialog(boolean showDialog)
AuthorizationRequest.Builder
setState(java.lang.String state)
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String clientId, AuthorizationResponse.Type responseType, java.lang.String redirectUri)
-
-
Method Detail
-
setState
public AuthorizationRequest.Builder setState(java.lang.String state)
-
setScopes
public AuthorizationRequest.Builder setScopes(java.lang.String[] scopes)
-
setShowDialog
public AuthorizationRequest.Builder setShowDialog(boolean showDialog)
-
setCustomParam
public AuthorizationRequest.Builder setCustomParam(java.lang.String key, java.lang.String value)
-
setCampaign
public AuthorizationRequest.Builder setCampaign(java.lang.String campaign)
-
build
public AuthorizationRequest build()
-
-