OnClickDelegate

public interface OnClickDelegate

androidx.car.app.model.OnClickDelegate


A host-side interface for reporting click to clients.

Summary

Public methods

abstract boolean isParkedOnly()

Indicates if the click listener is for parked-only scenarios.

abstract void sendClick(OnDoneCallback callback)

Notifies that a click happened.

Public methods

isParkedOnly

public abstract boolean isParkedOnly ()

Indicates if the click listener is for parked-only scenarios.

Returns
boolean

sendClick

public abstract void sendClick (OnDoneCallback callback)

Notifies that a click happened.

Parameters
callback OnDoneCallback: the OnDoneCallback to trigger when the client finishes handling the event