# ExoMediaDrm.AppManagedProvider

# ExoMediaDrm.AppManagedProvider

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/drm/ExoMediaDrm.AppManagedProvider "View this page in Java")

<br />

```
class ExoMediaDrm.AppManagedProvider : ExoMediaDrm.Provider
```

<br />

*** ** * ** ***

Provides an[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)instance owned by the app.

Note that when using this provider the app will have instantiated the[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)instance, and remains responsible for calling[release](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm#release())on the instance when it's no longer being used.

## Summary

|                                                                                                                                                                                                                            ### Public constructors                                                                                                                                                                                                                             |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AppManagedProvider](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm.AppManagedProvider#AppManagedProvider(androidx.media3.exoplayer.drm.ExoMediaDrm))`(exoMediaDrm: `[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)`!)` Creates an instance that provides the given[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm). |

|                                            ### Public functions                                            |
|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)`!` | [acquireExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm.AppManagedProvider#acquireExoMediaDrm(java.util.UUID))`(uuid: `[UUID](https://developer.android.com/reference/java/util/UUID.html)`!)` Returns an[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)instance with an incremented reference count. |

## Public constructors

### AppManagedProvider

```
AppManagedProvider(exoMediaDrm: ExoMediaDrm!)
```

Creates an instance that provides the given[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm).  

## Public functions

### acquireExoMediaDrm

```
fun acquireExoMediaDrm(uuid: UUID!): ExoMediaDrm!
```

Returns an[ExoMediaDrm](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm)instance with an incremented reference count. When the caller no longer needs the instance, it must call[release](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/ExoMediaDrm#release())to decrement the reference count.