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 |
onFailure(@NonNull Bundleable response)Notifies that the request was not fulfilled successfully. |
default void |
onSuccess(@Nullable Bundleable response)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 |
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 |