Android 12 Developer Preview is here! Try it out, and give us your feedback!

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

abstract void onFailure(Bundleable response)

Notifies that the request was not fulfilled successfully.

abstract void onSuccess(Bundleable response)

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

Public methods

onFailure

public abstract void onFailure (Bundleable response)

Notifies that the request was not fulfilled successfully.

Parameters
response Bundleable: the Bundleable containing the failure response

onSuccess

public abstract 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