OnDoneCallback

@CarProtocol
interface OnDoneCallback


A host-side interface for handling success and failure scenarios on calls to the client.

Summary

Public functions

Unit
onFailure(response: Bundleable)

Notifies that the request was not fulfilled successfully.

Unit
onSuccess(response: Bundleable?)

Notifies that the request has been successfully processed the request and provides a response.

Public functions

onFailure

Added in 1.0.0
fun onFailure(response: Bundleable): Unit

Notifies that the request was not fulfilled successfully.

Parameters
response: Bundleable

the Bundleable containing the failure response

onSuccess

Added in 1.0.0
fun onSuccess(response: Bundleable?): Unit

Notifies that the request has been successfully processed the request and provides a response.

Parameters
response: Bundleable?

the Bundleable containing the success response