SearchHeader


@CarProtocol
@ExperimentalCarApi
@RequiresCarApi(value = 9)
public final class SearchHeader


Represents a search bar header. This can be added to a SectionedItemTemplate to support search functionality.

Summary

Nested types

public final class SearchHeader.Builder

A builder of SearchHeader.

Public methods

boolean
@NonNull List<Action>

Returns the list of actions displayed at the end of the search header.

@Nullable String

Returns the initial search text or null if not set.

@NonNull SearchCallbackDelegate

Returns the SearchCallbackDelegate for search callbacks.

@Nullable String

Returns the search hint or null if not set.

@Nullable Action

Returns the action displayed at the start of the search header or null if not set.

int
boolean

Returns whether the keyboard should be displayed by default.

@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getEndHeaderActions

Added in 1.9.0-alpha02
public @NonNull List<ActiongetEndHeaderActions()

Returns the list of actions displayed at the end of the search header.

getInitialSearchText

Added in 1.9.0-alpha02
public @Nullable String getInitialSearchText()

Returns the initial search text or null if not set.

getSearchCallbackDelegate

Added in 1.9.0-alpha02
public @NonNull SearchCallbackDelegate getSearchCallbackDelegate()

Returns the SearchCallbackDelegate for search callbacks.

getSearchHint

Added in 1.9.0-alpha02
public @Nullable String getSearchHint()

Returns the search hint or null if not set.

getStartHeaderAction

Added in 1.9.0-alpha02
public @Nullable Action getStartHeaderAction()

Returns the action displayed at the start of the search header or null if not set.

hashCode

public int hashCode()

isShowKeyboardByDefault

Added in 1.9.0-alpha02
public boolean isShowKeyboardByDefault()

Returns whether the keyboard should be displayed by default.

toString

public @NonNull String toString()