Android 12 Developer Preview is here! Try it out, and give us your feedback!

SearchCallbackDelegate

public interface SearchCallbackDelegate

androidx.car.app.model.SearchCallbackDelegate


A host-side interface for reporting to search updates to clients.

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