Tab
@CarProtocol
@RequiresCarApi(value = 6)
public final class Tab implements Content
Represents a tab with a title and an image. Tab instances are used by TabTemplate to display tab headers.
Summary
Nested types |
|---|
public final class Tab.BuilderA builder of |
Public methods |
|
|---|---|
boolean |
|
@NonNull String |
Returns the content ID associated with the tab. |
@NonNull CarIcon |
getIcon()Returns the image to display in the tab |
@NonNull CarText |
getTitle()Returns the title of the tab. |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
getContentId
public @NonNull String getContentId()
Returns the content ID associated with the tab.
| See also | |
|---|---|
setContentId |
getIcon
Added in 1.3.0
public @NonNull CarIcon getIcon()
Returns the image to display in the tab
| See also | |
|---|---|
setIcon |