Header


@RequiresCarApi(value = 5)
@CarProtocol
public final class Header


A component that holds onto data associated with a template's header.

Summary

Nested types

public final class Header.Builder

A builder of Header.

Public methods

boolean
@NonNull List<Action>

Returns the Actions that are set to be displayed at the end of the header, or null if not set.

@Nullable Action

Returns the Action that is set to be displayed at the start of the header, or null if not set.

@Nullable CarText

Returns the title of the component or null if not set.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getEndHeaderActions

Added in 1.2.0
public @NonNull List<ActiongetEndHeaderActions()

Returns the Actions that are set to be displayed at the end of the header, or null if not set.

getStartHeaderAction

Added in 1.2.0
public @Nullable Action getStartHeaderAction()

Returns the Action that is set to be displayed at the start of the header, or null if not set.

getTitle

Added in 1.2.0
public @Nullable CarText getTitle()

Returns the title of the component or null if not set.

See also
setTitle

hashCode

public int hashCode()

toString

public @NonNull String toString()