Google is committed to advancing racial equity for Black communities. See how.

SearchTemplate

public final class SearchTemplate
extends Object implements Template

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.SearchTemplate


A model that allows the user to enter text searches, and can display results in a list.

Template Restrictions

In regards to template refreshes, as described in Screen.getTemplate(), this template supports any content changes as refreshes. This allows apps to interactively update the search results as the user types without the templates being counted against the quota.

Summary

Nested classes

class SearchTemplate.Builder

A builder of SearchTemplate

Public methods

static SearchTemplate.Builder builder(SearchListener listener)

Constructs a new builder of SearchTemplate.

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

Public methods

builder

public static SearchTemplate.Builder builder (SearchListener listener)

Constructs a new builder of SearchTemplate.

Parameters
listener SearchListener: the listener to be invoked for events such as when the user types new text, or submits a search.

Returns
SearchTemplate.Builder

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String