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.BuilderA builder of |
Public methods |
|
|---|---|
boolean |
|
@Nullable Background |
@ExperimentalCarApiReturns the |
@NonNull List<Action> |
Returns the |
@Nullable Action |
Returns the |
@Nullable CarText |
@ExperimentalCarApiReturns the subtitle of the component or |
@Nullable CarText |
getTitle()Returns the title of the component or |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
getBackground
@ExperimentalCarApi
@RequiresCarApi(value = 9)
public @Nullable Background getBackground()
Returns the Background of the component or null if not set.
| See also | |
|---|---|
setBackground |
getEndHeaderActions
public @NonNull List<Action> getEndHeaderActions()
Returns the Actions that are set to be displayed at the end of the header, or null if not set.
| See also | |
|---|---|
addEndHeaderAction |
getStartHeaderAction
public @Nullable Action getStartHeaderAction()
Returns the Action that is set to be displayed at the start of the header, or null if not set.
| See also | |
|---|---|
setStartHeaderAction |
getSubtitle
@ExperimentalCarApi
@RequiresCarApi(value = 9)
public @Nullable CarText getSubtitle()
Returns the subtitle of the component or null if not set.
| See also | |
|---|---|
setSubtitle |