AlertCallbackDelegate


@CarProtocol
@RequiresCarApi(value = 5)
interface AlertCallbackDelegate


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

Summary

Public functions

Unit
sendCancel(reason: Int, callback: OnDoneCallback)

Notifies that a cancel event happened with given reason.

Unit

Notifies that a dismiss event happened.

Public functions

sendCancel

Added in 1.2.0
fun sendCancel(reason: Int, callback: OnDoneCallback): Unit

Notifies that a cancel event happened with given reason.

Parameters
callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event

sendDismiss

Added in 1.2.0
fun sendDismiss(callback: OnDoneCallback): Unit

Notifies that a dismiss event happened.

Parameters
callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event