# SubtitleView.ViewType

# SubtitleView.ViewType

Artifact:[androidx.media3:media3-ui](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/ui/SubtitleView.java+class:androidx.media3.ui.SubtitleView.ViewType)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/ui/SubtitleView.ViewType "View this page in Java")

<br />

```
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = ElementType.TYPE_USE)
@IntDef(value = )
annotation SubtitleView.ViewType
```

<br />

*** ** * ** ***

The type of[View](https://developer.android.com/reference/android/view/View.html)to use to display subtitles.

One of:

- [VIEW_TYPE_CANVAS](https://developer.android.com/reference/kotlin/androidx/media3/ui/SubtitleView#VIEW_TYPE_CANVAS())
- [VIEW_TYPE_WEB](https://developer.android.com/reference/kotlin/androidx/media3/ui/SubtitleView#VIEW_TYPE_WEB())