ISpotifyApiBuilder

interface ISpotifyApiBuilder<T : SpotifyApi<T, B>, B : ISpotifyApiBuilder<T, B>>

Spotify Api builder interface

Parameters

T

The type of SpotifyApi to be built

B

The associated Api builder for T

Functions

authentication
Link copied to clipboard
common
open fun authentication(block: SpotifyUserAuthorization.() -> Unit): ISpotifyApiBuilder<T, B>
Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token
authorization
Link copied to clipboard
common
open fun authorization(authorization: SpotifyUserAuthorization): ISpotifyApiBuilder<T, B>
open fun authorization(block: SpotifyUserAuthorization.() -> Unit): ISpotifyApiBuilder<T, B>
Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token
build
Link copied to clipboard
common
abstract suspend fun build(enableDefaultTokenRefreshProducerIfNoneExists: Boolean = true): T
Build the T by provided information
buildRestAction
Link copied to clipboard
common
open fun buildRestAction(enableDefaultTokenRefreshProducerIfNoneExists: Boolean = true): SpotifyRestAction<T>
Build the T by provided information
credentials
Link copied to clipboard
common
open fun credentials(block: SpotifyCredentials.() -> Unit): ISpotifyApiBuilder<T, B>
A block in which Spotify application credentials (accessible via the Spotify dashboard) should be put
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
options
Link copied to clipboard
common
open fun options(options: SpotifyApiOptions): ISpotifyApiBuilder<T, B>
Allows you to override default values for caching, token refresh, and logging
open fun options(block: SpotifyApiOptions.() -> Unit): ISpotifyApiBuilder<T, B>
Allows you to override default values for caching, token refresh, and logging
toString
Link copied to clipboard
common
open fun toString(): String

Properties

authorization
Link copied to clipboard
common
abstract var authorization: SpotifyUserAuthorization
Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token
credentials
Link copied to clipboard
common
abstract var credentials: SpotifyCredentials
A block in which Spotify application credentials (accessible via the Spotify dashboard) should be put
options
Link copied to clipboard
common
abstract var options: SpotifyApiOptions
Allows you to override default values for caching, token refresh, and logging

Inheritors

ISpotifyClientApiBuilder
Link copied to clipboard
ISpotifyAppApiBuilder
Link copied to clipboard

Sources

(source)
Link copied to clipboard