ApiResultCallback

interface ApiResultCallback<in T>

Interface for returning results from API calls


Important:

Under normal circumstances this would only be used if writing code in Java, as every API call supports coroutines

Functions

onError
Link copied to clipboard
abstract fun onError(e: Exception)

Called when an API call fails

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

Called when an API call is successful