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 inScreen.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 |
Public methods | |
---|---|
static
SearchTemplate.Builder
|
builder(SearchListener listener)
Constructs a new builder of |
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 |
hashCode
public int hashCode ()
Returns | |
---|---|
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-15 UTC.