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

*** ** * ** ***


```
public final class ExoMediaDrm.AppManagedProvider implements ExoMediaDrm.Provider
```

<br />

*** ** * ** ***

Provides an `https://developer.android.com/reference/androidx/media3/exoplayer/drm/ExoMediaDrm` instance owned by the app.

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

## Summary

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

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

## Public constructors

### AppManagedProvider

```
public AppManagedProvider(ExoMediaDrm exoMediaDrm)
```

Creates an instance that provides the given `https://developer.android.com/reference/androidx/media3/exoplayer/drm/ExoMediaDrm`.

## Public methods

### acquireExoMediaDrm

```
public ExoMediaDrm acquireExoMediaDrm(UUID uuid)
```

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