UrlRequestCallbacks.CallbackAndResponseFuturePair

class UrlRequestCallbacks.CallbackAndResponseFuturePair<ResponseBodyT, CallbackT : InMemoryTransformCronetCallback<ResponseBodyT!>?>


A named pair-like structure encapsulating Cronet callbacks and associated response futures.

The request should be used to pass to CronetEngine.newUrlRequest(), the future will contain the response to the request.

Parameters
<CallbackT : InMemoryTransformCronetCallback<ResponseBodyT!>?>

the subtype of the callback

<ResponseBodyT>

The type of the deserialized response body

Summary

Public functions

CallbackT!
Future<CronetResponse<ResponseBodyT!>!>!

Public functions

getCallback

fun getCallback(): CallbackT!

getFuture

fun getFuture(): Future<CronetResponse<ResponseBodyT!>!>!