OnDoneCallback


@CarProtocol
public interface OnDoneCallback


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

Summary

Public methods

default void

Notifies that the request was not fulfilled successfully.

default void

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

Public methods

onFailure

Added in 1.0.0
default void onFailure(@NonNull Bundleable response)

Notifies that the request was not fulfilled successfully.

Parameters
@NonNull Bundleable response

the Bundleable containing the failure response

onSuccess

Added in 1.0.0
default void onSuccess(@Nullable Bundleable response)

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

Parameters
@Nullable Bundleable response

the Bundleable containing the success response