public static class SpotifyApi.Builder extends Object
SpotifyApi instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
SpotifyApi |
build() |
Build a
SpotifyApi instance with the information given to the builder. |
SpotifyApi.Builder |
setAccessToken(String accessToken) |
The access token setter.
|
SpotifyApi.Builder |
setClientId(String clientId) |
The client ID setter.
|
SpotifyApi.Builder |
setClientSecret(String clientSecret) |
The client secret setter.
|
SpotifyApi.Builder |
setHost(String host) |
The Spotify API host setter.
|
SpotifyApi.Builder |
setHttpManager(IHttpManager httpManager) |
The HttpManager setter.
|
SpotifyApi.Builder |
setPort(Integer port) |
The Spotify API port setter.
|
SpotifyApi.Builder |
setProxyPassword(Integer proxyPassword) |
The proxy password setter.
|
SpotifyApi.Builder |
setProxyPort(Integer proxyPort) |
The proxy port setter.
|
SpotifyApi.Builder |
setProxyUrl(String proxyUrl) |
The proxy URL setter.
|
SpotifyApi.Builder |
setProxyUsername(Integer proxyUsername) |
The proxy username setter.
|
SpotifyApi.Builder |
setRedirectUri(URI redirectUri) |
The redirect URI setter.
|
SpotifyApi.Builder |
setRefreshToken(String refreshToken) |
The refresh token setter.
|
SpotifyApi.Builder |
setScheme(String scheme) |
The scheme setter.
|
public SpotifyApi.Builder setHttpManager(IHttpManager httpManager)
httpManager - A Spotify HttpManager.SpotifyApi.Builder.public SpotifyApi.Builder setScheme(String scheme)
scheme - A HTTP-scheme.SpotifyApi.Builder.public SpotifyApi.Builder setHost(String host)
host - A Spotify API host.SpotifyApi.Builder.public SpotifyApi.Builder setPort(Integer port)
port - A Spotify API port.SpotifyApi.Builder.public SpotifyApi.Builder setProxyUrl(String proxyUrl)
proxyUrl - A proxy URL.SpotifyApi.Builder.public SpotifyApi.Builder setProxyPort(Integer proxyPort)
proxyPort - A proxy port.SpotifyApi.Builder.public SpotifyApi.Builder setProxyUsername(Integer proxyUsername)
proxyUsername - A proxy username.SpotifyApi.Builder.public SpotifyApi.Builder setProxyPassword(Integer proxyPassword)
proxyPassword - A proxy password.SpotifyApi.Builder.public SpotifyApi.Builder setClientId(String clientId)
clientId - A client ID of your application.SpotifyApi.Builder.public SpotifyApi.Builder setClientSecret(String clientSecret)
clientSecret - A client secret of your application.SpotifyApi.Builder.public SpotifyApi.Builder setRedirectUri(URI redirectUri)
redirectUri - A redirect URI of your application.SpotifyApi.Builder.public SpotifyApi.Builder setAccessToken(String accessToken)
accessToken - A Spotify API access token.SpotifyApi.Builder.public SpotifyApi.Builder setRefreshToken(String refreshToken)
refreshToken - A Spotify API refresh token.SpotifyApi.Builder.public SpotifyApi build()
SpotifyApi instance with the information given to the builder.SpotifyApi instance.Copyright © 2019. All rights reserved.