TelephoneKeypadCallbackDelegate


@CarProtocol
@ExperimentalCarApi
public 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 methods

abstract void
sendKeyDown(int key, @NonNull OnDoneCallback callback)

Send the key down event to the client.

abstract void
sendKeyLongPress(int key, @NonNull OnDoneCallback callback)

Send the key long press event to the client.

abstract void
sendKeyUp(int key, @NonNull OnDoneCallback callback)

Send the key up event to the client.

Public methods

sendKeyDown

Added in 1.8.0-beta01
abstract void sendKeyDown(int key, @NonNull OnDoneCallback callback)

Send the key down event to the client.

Parameters
int key

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

@NonNull OnDoneCallback callback

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
abstract void sendKeyLongPress(int key, @NonNull OnDoneCallback callback)

Send the key long press event to the client.

Parameters
int key

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

@NonNull OnDoneCallback callback

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
abstract void sendKeyUp(int key, @NonNull OnDoneCallback callback)

Send the key up event to the client.

Parameters
int key

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

@NonNull OnDoneCallback callback

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