OkHttpListener

interface OkHttpListener

Interface to define callbacks for OkHttp requests.

Functions

Link copied to clipboard
abstract fun onFailure(response: Response? = null, responseBody: String)

Called when the HTTP request fails.

Link copied to clipboard
abstract fun onSuccess(response: Response, responseBody: String)

Called when the HTTP request is successful.