SearchCallbackDelegate

public interface SearchCallbackDelegate

androidx.car.app.model.SearchCallbackDelegate


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

Summary

Public methods

abstract void sendSearchSubmitted(String searchText, OnDoneCallback callback)

Notifies that the user has submitted the search.

abstract void sendSearchTextChanged(String searchText, OnDoneCallback callback)

Notifies that the search text has changed.

Public methods

sendSearchSubmitted

public abstract void sendSearchSubmitted (String searchText, 
                OnDoneCallback callback)

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

public abstract void sendSearchTextChanged (String searchText, 
                OnDoneCallback callback)

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