SpotifyContinuation

abstract class SpotifyContinuation<in T> : Continuation<T> (source)

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

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val context: CoroutineContext

Functions

Link copied to clipboard
abstract fun onFailure(exception: Throwable)

Handle exceptions during this API call.

Link copied to clipboard
abstract fun onSuccess(value: T)

Invoke a function with the callback value

Link copied to clipboard
open override fun resumeWith(result: Result<T>)