RequestCallback

A request callback for updating request status to the helper

Since

v1.3.0

Parameters

wrapper

The wrapper that was executed

helper

The helper to report to

Constructors

Link copied to clipboard
constructor(wrapper: RequestWrapper, helper: IRequestHelper)

Functions

Link copied to clipboard
suspend fun recordFailure(throwable: RequestError)

Call this method with the failure message and the request can be retried via IRequestHelper.retryWithStatus.

Link copied to clipboard
suspend fun recordSuccess()

Call this method when the request succeeds and new data is fetched.