AlertCallback
@CarProtocol
@RequiresCarApi(value = 5)
interface AlertCallback
A listener of dismiss events.
Summary
Constants |
|
---|---|
const Int |
Indicates the cancellation is due to the request not being supported, e.g. when current template cannot display the alert. |
const Int |
REASON_TIMEOUT = 1 Indicates the cancellation is due to timeout. |
const Int |
Indicates the cancellation is due to user generated action, e.g. close button being pressed. |
Public functions |
|
---|---|
Unit |
Notifies that a cancel event happened with given |
Unit |
Notifies that a dismiss happened. |
Constants
REASON_NOT_SUPPORTED
const val REASON_NOT_SUPPORTED = 3: Int
Indicates the cancellation is due to the request not being supported, e.g. when current template cannot display the alert.
REASON_TIMEOUT
const val REASON_TIMEOUT = 1: Int
Indicates the cancellation is due to timeout.
REASON_USER_ACTION
const val REASON_USER_ACTION = 2: Int
Indicates the cancellation is due to user generated action, e.g. close button being pressed.