InputCallbackDelegate


@RequiresCarApi(value = 2)
interface InputCallbackDelegate


A host-side delegate for sending InputCallback events to the car app.

Summary

Public functions

Unit

Notifies that the user has submitted the text.

Unit

Notifies that user input text has changed.

Public functions

sendInputSubmitted

Added in 1.1.0
fun sendInputSubmitted(value: String, callback: OnDoneCallback): Unit

Notifies that the user has submitted the text.

Parameters
value: String

the text entered

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event

sendInputTextChanged

Added in 1.1.0
fun sendInputTextChanged(value: String, callback: OnDoneCallback): Unit

Notifies that user input text has changed.

Parameters
value: String

the text entered

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event