# Content

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/Content.java+class:androidx.car.app.model.Content) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
@CarProtocol
@RequiresCarApi(value = 6)
public interface Content
```

<br />

Known direct subclasses [TabContents](https://developer.android.com/reference/androidx/car/app/model/TabContents), [Tab](https://developer.android.com/reference/androidx/car/app/model/Tab)

|---|---|
| `https://developer.android.com/reference/androidx/car/app/model/TabContents` | Represents the contents to display for a selected tab in a `https://developer.android.com/reference/androidx/car/app/model/TabTemplate`. |
| `https://developer.android.com/reference/androidx/car/app/model/Tab` | Represents a tab with a title and an image. |

*** ** * ** ***

Interface implemented by models that can be invalidated and refreshed individually.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/model/Content#getContentId()()` Returns the associated content ID for a component. |

## Public methods

### getContentId

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
abstract @NonNull String getContentId()
```

Returns the associated content ID for a component. This ID will be used to trigger invalidation and refresh of the component, and can not change.