TelephoneKeypadCallbackDelegate


@CarProtocol
@ExperimentalCarApi
interface TelephoneKeypadCallbackDelegate


A host-side interface for reporting keypad key events to clients. This delegate exists to abstract away the success/failure calls caused by the app, host, or android OS (due to the ipc transaction) through a more structured interface. All IPC events must be executed on the main thread.

Summary

Public functions

Unit
sendKeyDown(key: Int, callback: OnDoneCallback)

Send the key down event to the client.

Unit
sendKeyLongPress(key: Int, callback: OnDoneCallback)

Send the key long press event to the client.

Unit
sendKeyUp(key: Int, callback: OnDoneCallback)

Send the key up event to the client.

Public functions

sendKeyDown

Added in 1.8.0-beta01
fun sendKeyDown(key: Int, callback: OnDoneCallback): Unit

Send the key down event to the client.

Parameters
key: Int

The code for the key that was pressed allowed by KeypadKey.

callback: OnDoneCallback

The callback to be notified when the operation is complete. The callback will be executed on the main thread.

sendKeyLongPress

Added in 1.8.0-beta01
fun sendKeyLongPress(key: Int, callback: OnDoneCallback): Unit

Send the key long press event to the client.

Parameters
key: Int

The code for the key that was pressed allowed by KeypadKey.

callback: OnDoneCallback

The callback to be notified when the operation is complete. The callback will be executed on the main thread.

sendKeyUp

Added in 1.8.0-beta01
fun sendKeyUp(key: Int, callback: OnDoneCallback): Unit

Send the key up event to the client.

Parameters
key: Int

The code for the key that was pressed allowed by KeypadKey.

callback: OnDoneCallback

The callback to be notified when the operation is complete. The callback will be executed on the main thread.