SpotifyContinuation

abstract class SpotifyContinuation<in T>

A Continuation wrapper to allow you to directly implement onSuccess and onFailure, when exceptions are hidden on JVM via traditional continuations. Please use this class as a callback anytime you are using Java code with this library.

Constructors

SpotifyContinuation
Link copied to clipboard
commonJvmLike
fun SpotifyContinuation()

Functions

equals
Link copied to clipboard
commonJvmLike
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
commonJvmLike
open fun hashCode(): Int
onFailure
Link copied to clipboard
commonJvmLike
abstract fun onFailure(exception: Throwable)
Handle exceptions during this API call.
onSuccess
Link copied to clipboard
commonJvmLike
abstract fun onSuccess(value: T)
Invoke a function with the callback value
resumeWith
Link copied to clipboard
commonJvmLike
open fun resumeWith(result: <ERROR CLASS><T>)
toString
Link copied to clipboard
commonJvmLike
open fun toString(): String

Properties

context
Link copied to clipboard
commonJvmLike
open val context: <ERROR CLASS>

Sources

(source)
Link copied to clipboard