SearchHeader


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


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

Summary

Nested types

A builder of SearchHeader.

Public functions

Boolean
equals(other: Any?)
(Mutable)List<Action!>

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

String?

Returns the initial search text or null if not set.

SearchCallbackDelegate

Returns the SearchCallbackDelegate for search callbacks.

String?

Returns the search hint or null if not set.

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.

String

Public functions

equals

fun equals(other: Any?): Boolean

getEndHeaderActions

Added in 1.9.0-alpha02
fun getEndHeaderActions(): (Mutable)List<Action!>

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

getInitialSearchText

Added in 1.9.0-alpha02
fun getInitialSearchText(): String?

Returns the initial search text or null if not set.

getSearchCallbackDelegate

Added in 1.9.0-alpha02
fun getSearchCallbackDelegate(): SearchCallbackDelegate

Returns the SearchCallbackDelegate for search callbacks.

getSearchHint

Added in 1.9.0-alpha02
fun getSearchHint(): String?

Returns the search hint or null if not set.

getStartHeaderAction

Added in 1.9.0-alpha02
fun getStartHeaderAction(): Action?

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

hashCode

fun hashCode(): Int

isShowKeyboardByDefault

Added in 1.9.0-alpha02
fun isShowKeyboardByDefault(): Boolean

Returns whether the keyboard should be displayed by default.

toString

fun toString(): String