| org.chromium.net.apihelpers.CronetRequestCompletionListener<T> |
A completion listener for accepting the results of a Cronet request asynchronously.
To attach to a Cronet request use InMemoryTransformCronetCallback and call addCompletionListener(CronetRequestCompletionListener super T>).
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Invoked if request was canceled via
UrlRequest#cancel. | |||||||||||
Invoked if request failed for any reason after starting the request.
| |||||||||||
Invoked when request is completed successfully.
| |||||||||||
Invoked if request was canceled via UrlRequest#cancel. Once invoked, no other methods
will be invoked on this object.
| Parameters | |
|---|---|
info |
UrlResponseInfo: Response information. May be null if no response was received.
|
Invoked if request failed for any reason after starting the request. Once invoked, no other
methods will be invoked on this object. exception provides information about the
failure.
| Parameters | |
|---|---|
info |
UrlResponseInfo: Response information. May be null if no response was received. |
exception |
CronetException: detailed information about the error that occurred.
|
Invoked when request is completed successfully. Once invoked, no other methods will be invoked on this object.
| Parameters | |
|---|---|
info |
UrlResponseInfo: Response information. |
body |
T: The response body transformed to the desired type.
|