AlertCallbackDelegate

@CarProtocol
@RequiresCarApi(value = 5)
public interface AlertCallbackDelegate


A host-side interface for reporting cancel events to clients.

Summary

Public methods

abstract void
sendCancel(int reason, @NonNull OnDoneCallback callback)

Notifies that a cancel event happened with given reason.

abstract void

Notifies that a dismiss event happened.

Public methods

sendCancel

Added in 1.2.0
abstract void sendCancel(int reason, @NonNull OnDoneCallback callback)

Notifies that a cancel event happened with given reason.

Parameters
@NonNull OnDoneCallback callback

the OnDoneCallback to trigger when the client finishes handling the event

sendDismiss

Added in 1.2.0
abstract void sendDismiss(@NonNull OnDoneCallback callback)

Notifies that a dismiss event happened.

Parameters
@NonNull OnDoneCallback callback

the OnDoneCallback to trigger when the client finishes handling the event