public static class ConnectionParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(java.lang.String clientId) |
Modifier and Type | Method and Description |
---|---|
ConnectionParams |
build() |
ConnectionParams.Builder |
setAuthMethod(ConnectionParams.AuthMethod authMethod)
Use to override default authentication type ("appid")
|
ConnectionParams.Builder |
setJsonMapper(JsonMapper mapper) |
ConnectionParams.Builder |
setRedirectUri(java.lang.String redirectUri)
Send redirect uri for authentication purposes.
|
ConnectionParams.Builder |
setRequiredFeatures(java.util.List<java.lang.String> requiredFeatures) |
ConnectionParams.Builder |
showAuthView(boolean showAuthView)
Spotify app will request user authorization UI if necessary.
|
public ConnectionParams.Builder setRedirectUri(java.lang.String redirectUri)
redirectUri
- uri registered in the developer.spotify.com pagepublic ConnectionParams.Builder setAuthMethod(ConnectionParams.AuthMethod authMethod)
authMethod
- the authentication type to usepublic ConnectionParams.Builder showAuthView(boolean showAuthView)
showAuthView
- ask for user authorization if necessarypublic ConnectionParams.Builder setRequiredFeatures(java.util.List<java.lang.String> requiredFeatures)
public ConnectionParams.Builder setJsonMapper(JsonMapper mapper)
public ConnectionParams build()