package

androidx.car.app.model

Interfaces

AlertCallbackA listener of dismiss events.
AlertCallbackDelegateA host-side interface for reporting cancel events to clients.
ContentInterface implemented by models that can be invalidated and refreshed individually.
InputCallbackA listener for handling text input completion event.
InputCallbackDelegateA host-side delegate for sending InputCallback events to the car app.
ItemInterface implemented by models that can be added to an ItemList.
ItemList.OnItemVisibilityChangedListenerA listener for handling item visibility changes.
ItemList.OnSelectedListenerA listener for handling selection events for lists with selectable items.
OnCheckedChangeDelegateA host-side delegate for sending Toggle.OnCheckedChangeListener events to the car app.
OnClickDelegateA host-side interface for reporting click to clients.
OnClickListenerA listener of click events.
OnContentRefreshDelegateA host-side delegate for sending OnContentRefreshListener events to the car app.
OnContentRefreshListenerA listener of content refresh requests
OnItemVisibilityChangedDelegateA host-side delegate for sending ItemList.OnItemVisibilityChangedListener events to the car app.
OnSelectedDelegateA host-side delegate for sending ItemList.OnSelectedListener events to the car app.
SearchCallbackDelegateA host-side delegate for sending SearchTemplate.SearchCallback events to the car app.
SearchTemplate.SearchCallbackA listener for search updates.
TabCallbackDelegateA host-side delegate for sending TabTemplate.TabCallback events to the car app.
TabTemplate.TabCallbackA listener for tab selection.
TemplateAn interface used to denote a model that can act as a root for a tree of other models.
Toggle.OnCheckedChangeListenerA listener for handling checked state change events.

Classes

ActionRepresents an action with an optional icon and text.
Action.BuilderA builder of Action.
ActionStripRepresents a list of Actions that are used for a template.
ActionStrip.BuilderA builder of ActionStrip.
AlertRepresents an alert with an optional icon, subtitle and actions.
Alert.BuilderA builder of Alert.
AlertCallbackDelegateImplImplementation class for AlertCallbackDelegate to allow IPC for cancel events.
BadgeRepresents a badge that can be displayed as an overlay on top of an image.
Badge.BuilderA builder of Badge.
CarColorRepresents a color to be used in a car app.
CarIconRepresents an icon to be used in a car app.
CarIcon.BuilderA builder of CarIcon.
CarIconSpanA span that replaces the text it is attached to with a CarIcon that is aligned with the surrounding text.
CarLocationRepresents a geographical location with a latitude and a longitude.
CarSpanBase class for all span types allowed for a car app.
CarTextA model that represents text to display in the car screen.
CarText.BuilderA builder of CarText.
CarText.SpanWrapperWraps a span to send it to the host.
ClickableSpanA span that makes a section of text clickable.
DateTimeWithZoneA time with an associated time zone information.
DistanceRepresents a distance value and how it should be displayed in the UI.
DistanceSpanA span that replaces the text it is attached to with the string representation of a Distance instance.
DurationSpanA span that replaces the text it is attached to with a localized duration string.
ForegroundCarColorSpanA span that changes the color of the text to which the span is attached.
GridItemRepresents a grid item with an image and an optional title.
GridItem.BuilderA builder of GridItem.
GridSectionA section within the SectionedItemTemplate that contains GridItems - good for showcase large artwork or images for every entry.
GridSection.BuilderA builder that constructs GridSection instances.
GridTemplateA template representing a grid of items.
GridTemplate.BuilderA builder of GridTemplate.
HeaderA component that holds onto data associated with a template's header.
Header.BuilderA builder of Header.
InputCallbackDelegateImplImplementation class for InputCallbackDelegate to allow IPC for text-input-related events.
ItemListRepresents a list of Item instances.
ItemList.BuilderA builder of ItemList.
ListTemplateA template representing a list of items.
ListTemplate.BuilderA builder of ListTemplate.
LongMessageTemplateA template for displaying a long text, which could be several paragraphs long, with associated actions.
LongMessageTemplate.BuilderA builder of LongMessageTemplate.
MessageTemplateA template for displaying a message and associated actions.
MessageTemplate.BuilderA builder of MessageTemplate.
MetadataA metadata class used for attaching additional properties to models.
Metadata.BuilderA builder for Metadata.
ModelUtilsUtility class for common operations on the car app models
OnCheckedChangeDelegateImplImplementation class for OnCheckedChangeDelegate.
OnClickDelegateImplImplementation class for OnClickDelegate to allow IPC for click-related events.
OnContentRefreshDelegateImplImplementation class for OnContentRefreshListener.
OnItemVisibilityChangedDelegateImplImplementation class for OnItemVisibilityChangedDelegate.
OnSelectedDelegateImplImplementation class for OnSelectedDelegate.
PaneRepresents a list of rows used for displaying informational content and a set of Actions that users can perform based on such content.
Pane.BuilderA builder of Pane.
PaneTemplateA template that displays a Pane.
PaneTemplate.BuilderA builder of PaneTemplate.
ParkedOnlyOnClickListenerAn OnClickListener that wraps another one and executes its ParkedOnlyOnClickListener.onClick() method only when the car is parked.
PlaceRepresents a geographical location and additional information on how to display it.
Place.BuilderA builder of Place.
PlaceListMapTemplateA template that displays a map along with a list of places.
PlaceListMapTemplate.BuilderA builder of PlaceListMapTemplate.
PlaceMarkerDescribes how a place is to be displayed on a map.
PlaceMarker.BuilderA builder of PlaceMarker.
RowRepresents a row with a title, several lines of text, an optional image, and an optional action or switch.
Row.BuilderA builder of Row.
RowSectionA section within the SectionedItemTemplate that contains Rows - good for showcasing small icons and longer text for every entry.
RowSection.BuilderA builder that constructs RowSection instances.
SearchCallbackDelegateImplImplementation class for SearchCallbackDelegate.
SearchTemplateA model that allows the user to enter text searches, and can display results in a list.
SearchTemplate.BuilderA builder of SearchTemplate.
Section<T>The generic interface for a single section within a sectioned item template.
Section.BaseBuilder<T, B>Generic Section builder that contains the fields that all sections share.
SectionedItemListRepresents an ItemList that is contained inside a section.
SectionedItemTemplateA template that contains sections of items like rows, grid items, etc.
SectionedItemTemplate.BuilderA builder that constructs SectionedItemTemplate instances.
TabRepresents a tab with a title and an image.
Tab.BuilderA builder of Tab.
TabCallbackDelegateImplImplementation class for TabCallbackDelegate.
TabContentsRepresents the contents to display for a selected tab in a TabTemplate.
TabContents.BuilderA builder of TabContents.
TabTemplateA template representing a list of tabs and contents for the active tab.
TabTemplate.BuilderA builder of TabTemplate.
TemplateInfoStores information about Template returned from a Screen.
TemplateWrapperA wrapper for mapping a Template with a unique ID used for implementing task flow restrictions.
ToggleRepresents a toggle that can have either a checked or unchecked state.
Toggle.BuilderA builder of Toggle.

Annotation Types

Action.ActionFlagThe flag of action represented by the Action instance.
Action.ActionTypeThe type of action represented by the Action instance.
AlertCallback.ReasonThe reason for which the alert was cancelled.
CarColor.CarColorTypeThe type of color represented by the CarColor instance.
CarIcon.CarIconTypeThe type of car icon represented by the CarIcon instance.
CarIconSpan.AlignmentIndicates how to align a car icon span with its surrounding text.
Distance.UnitPossible units used to display Distance
GridItem.GridItemImageTypeThe type of images supported within grid items.
GridSection.ItemImageShapeDefines the possible shapes of the images shown on the grid items within a grid section.
GridSection.ItemSizeDefines possible sizes of the grid items within a grid section.
GridTemplate.ItemImageShapeThe shape of each grid item image contained within this GridTemplate.
GridTemplate.ItemSizeThe size of each grid item contained within this GridTemplate.
PlaceMarker.MarkerIconTypeDescribes the type of image a marker icon represents.
Row.RowImageTypeThe type of images supported within rows.