SearchCallbackDelegate


@CarProtocol
interface SearchCallbackDelegate


A host-side delegate for sending androidx.car.app.model.SearchTemplate.SearchCallback events to the car app.

Summary

Public functions

Unit
sendSearchSubmitted(searchText: String, callback: OnDoneCallback)

Notifies that the user has submitted the search.

Unit
sendSearchTextChanged(searchText: String, callback: OnDoneCallback)

Notifies that the search text has changed.

Public functions

sendSearchSubmitted

Added in 1.0.0
fun sendSearchSubmitted(searchText: String, callback: OnDoneCallback): Unit

Notifies that the user has submitted the search.

Parameters
searchText: String

the search text that was submitted

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event

sendSearchTextChanged

Added in 1.0.0
fun sendSearchTextChanged(searchText: String, callback: OnDoneCallback): Unit

Notifies that the search text has changed.

Parameters
searchText: String

the up-to-date search text

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event