# Content

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/model/Content "View this page in Java")

<br />

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

<br />

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

|--------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TabContents](https://developer.android.com/reference/kotlin/androidx/car/app/model/TabContents) | Represents the contents to display for a selected tab in a[TabTemplate](https://developer.android.com/reference/kotlin/androidx/car/app/model/TabTemplate). |
| [Tab](https://developer.android.com/reference/kotlin/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 functions                                |
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [getContentId](https://developer.android.com/reference/kotlin/androidx/car/app/model/Content#getContentId())`()` Returns the associated content ID for a component. |

## Public functions

### getContentId

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

```
fun getContentId(): String
```

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.