OnDoneCallback

public interface OnDoneCallback

androidx.car.app.OnDoneCallback


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

Summary

Public methods

default void onFailure(Bundleable response)

Notifies that the request was not fulfilled successfully.

default void onSuccess(Bundleable response)

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

Public methods

onFailure

public void onFailure (Bundleable response)

Notifies that the request was not fulfilled successfully.

Parameters
response Bundleable: the Bundleable containing the failure response

onSuccess

public void onSuccess (Bundleable response)

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

Parameters
response Bundleable: the Bundleable containing the success response