Package com.adamratzman.spotify.utils

Types

BufferedImage
Link copied to clipboard
common
typealias BufferedImage = Bitmap

Represents an image. Please use convertXToBufferedImage and convertBufferedImageToX methods to read and write BufferedImage

ConcurrentHashMap
Link copied to clipboard
class ConcurrentHashMap<K, V>
typealias ConcurrentHashMap = ConcurrentHashMap<K, V>
typealias ConcurrentHashMap = ConcurrentHashMap<K, V>
typealias ConcurrentHashMap = <ERROR CLASS><K, V>
typealias ConcurrentHashMap = <ERROR CLASS><K, V>
typealias ConcurrentHashMap = HashMap<K, V>
Language
Link copied to clipboard
common
enum Language : Enum<Language>
ISO 639-1 language code.
Locale
Link copied to clipboard
common
enum Locale : Enum<Locale>
Locale code.
Market
Link copied to clipboard
common
enum Market : Enum<Market>
ISO 3166-1 country code.
Platform
Link copied to clipboard
common
enum Platform : Enum<Platform>
Actual platforms that this program can be run on.
TimeUnit
Link copied to clipboard
common
enum TimeUnit : Enum<TimeUnit>
Represents a unit of time

Functions

asList
Link copied to clipboard
common
fun <K, V> ConcurrentHashMap<K, V>.asList(): List<Pair<K, V>>
asPromise
Link copied to clipboard
js
fun <T> SpotifyRestAction<T>.asPromise(): Promise<T>
convertBufferedImageToBase64JpegString
Link copied to clipboard
common
fun convertBufferedImageToBase64JpegString(image: BufferedImage): String
convertFileToBufferedImage
Link copied to clipboard
common
suspend fun convertFileToBufferedImage(file: VfsFile): BufferedImage
convertLocalImagePathToBufferedImage
Link copied to clipboard
common
suspend fun convertLocalImagePathToBufferedImage(path: String): BufferedImage
convertUrlPathToBufferedImage
Link copied to clipboard
common
suspend fun convertUrlPathToBufferedImage(url: String): BufferedImage
getCurrentTimeMs
Link copied to clipboard
common
fun getCurrentTimeMs(): Long
The current time in milliseconds since UNIX epoch.
desktop
fun getCurrentTimeMs(): Long
The current time in milliseconds since UNIX epoch.
js
fun getCurrentTimeMs(): Long
The current time in milliseconds since UNIX epoch.
nativeDarwin
fun getCurrentTimeMs(): Long
The current time in milliseconds since UNIX epoch.
getExternalUrls
Link copied to clipboard
common
fun getExternalUrls(externalUrlsString: Map<String, String>): List<ExternalUrl>
parseSpotifyCallbackHashToToken
Link copied to clipboard
js
fun parseSpotifyCallbackHashToToken(): Token
Parse the current url into a valid Token to be used when instantiating a new SpotifyImplicitGrantApi
fun parseSpotifyCallbackHashToToken(hashString: String): Token
Parse the hash string into a valid Token to be used when instantiating a new SpotifyImplicitGrantApi
runBlockingOnJvmAndNative
Link copied to clipboard
common
fun <T> runBlockingOnJvmAndNative(block: suspend () -> T): T
urlEncodeBase64String
Link copied to clipboard
common
fun String.urlEncodeBase64String(): String

Properties

currentApiPlatform
Link copied to clipboard
val currentApiPlatform: Platform
val currentApiPlatform: Platform
Actual platform that this program is run on.
val currentApiPlatform: Platform
Actual platform that this program is run on.
val currentApiPlatform: Platform
The actual platform that this program is running on.
val currentApiPlatform: Platform
Actual platform that this program is run on.