InputCallbackDelegate

public interface InputCallbackDelegate

androidx.car.app.model.InputCallbackDelegate


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

Summary

Public methods

abstract void sendInputSubmitted(String value, OnDoneCallback callback)

Notifies that the user has submitted the text.

abstract void sendInputTextChanged(String value, OnDoneCallback callback)

Notifies that user input text has changed.

Public methods

sendInputSubmitted

public abstract void sendInputSubmitted (String value, 
                OnDoneCallback callback)

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

public abstract void sendInputTextChanged (String value, 
                OnDoneCallback callback)

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