AFCallback

interface AFCallback<T>

A simple Java/Kotlin friendly callback for async results.

  • onSuccess is always called with a non-null value.

  • onError is always called with a non-null Throwable.

Functions

Link copied to clipboard
abstract fun onError(cause: Throwable? = null)
Link copied to clipboard
abstract fun onSuccess(value: T)