SpotifyContinuation

abstract class SpotifyContinuation<in T> : Continuation<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

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 override fun resumeWith(result: Result<T>)

Properties

context
Link copied to clipboard
commonJvmLike
open override val context: CoroutineContext

Sources

commonJvmLike source
Link copied to clipboard