mapbox-maps-android
mapbox-maps-android
/
com.mapbox.common.http_backend
/
RequestObserver
Request
Observer
interface
RequestObserver
Observes request updates, including HTTP response, data and success or failure status.
Functions
Functions
on
Data
Link copied to clipboard
abstract
fun
onData
(
id
:
Long
)
Called after the backend has written data to the data stream passed in onResponse.
on
Failed
Link copied to clipboard
abstract
fun
onFailed
(
id
:
Long
,
@
NonNull
error
:
HttpRequestError
)
Called once if the request couldn't be completed.
on
Response
Link copied to clipboard
abstract
fun
onResponse
(
id
:
Long
,
@
NonNull
data
:
ResponseData
)
Called once after the HTTP response has been received by the backend
on
Succeeded
Link copied to clipboard
abstract
fun
onSucceeded
(
id
:
Long
)
Called once if the request completed successfully and all data has been written to the data stream.