docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaDrm.AppManagedProvider.html
Package com.google.android.exoplayer2.drm
All Implemented Interfaces:ExoMediaDrm.ProviderEnclosing interface:ExoMediaDrm
public static final classExoMediaDrm.AppManagedProviderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ExoMediaDrm.Provider](ExoMediaDrm.Provider.html "interface in com.google.android.exoplayer2.drm")
Provides an ExoMediaDrm instance owned by the app.
Note that when using this provider the app will have instantiated the ExoMediaDrm instance, and remains responsible for calling ExoMediaDrm.release() on the instance when it's no longer being used.
Constructors | Constructor | Description |
| --- | --- |
| AppManagedProvider(ExoMediaDrm exoMediaDrm) |
Creates an instance that provides the given ExoMediaDrm.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| ExoMediaDrm | acquireExoMediaDrm(UUID uuid) |
Returns an ExoMediaDrm instance with an incremented reference count.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public AppManagedProvider([ExoMediaDrm](ExoMediaDrm.html "interface in com.google.android.exoplayer2.drm")exoMediaDrm)
Creates an instance that provides the given ExoMediaDrm.
-
public[ExoMediaDrm](ExoMediaDrm.html "interface in com.google.android.exoplayer2.drm")acquireExoMediaDrm([UUID](https://developer.android.com/reference/java/util/UUID.html "class or interface in java.util")uuid)
Description copied from interface: ExoMediaDrm.Provider
Returns an ExoMediaDrm instance with an incremented reference count. When the caller no longer needs the instance, it must call ExoMediaDrm.release() to decrement the reference count.
Specified by:acquireExoMediaDrm in interface ExoMediaDrm.Provider