docs/doc/reference/com/google/android/exoplayer2/util/LibraryLoader.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classLibraryLoaderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Configurable loader for native libraries.
Constructors | Constructor | Description |
| --- | --- |
| LibraryLoader(String... libraries) |
Deprecated.
|
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | isAvailable() |
Deprecated.
Returns whether the underlying libraries are available, loading them if necessary.
|
| protected abstract void | loadLibrary(String name) |
Deprecated.
Should be implemented to call System.loadLibrary(name).
|
| void | setLibraries(String... libraries) |
Deprecated.
Overrides the names of the libraries to load. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public LibraryLoader([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")... libraries)
Deprecated.
Parameters:libraries - The names of the libraries to load.
-
public void setLibraries([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")... libraries)
Deprecated.
Overrides the names of the libraries to load. Must be called before any call to isAvailable().
-
public boolean isAvailable()
Deprecated.
Returns whether the underlying libraries are available, loading them if necessary.
-
protected abstract void loadLibrary([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name)
Deprecated.
Should be implemented to call System.loadLibrary(name).
It's necessary for each subclass to implement this method because System.loadLibrary(String) uses reflection to obtain the calling class, which is then used to obtain the class loader to use when loading the native library. If this class were to implement the method directly, and if a subclass were to have a different class loader, then loading of the native library would fail.
Parameters:name - The name of the library to load.