public class SoLibraryLoader
extends java.lang.Object
System.loadLibrary(String)
method used in Gfycat SDK be default.
This may help reduce the amount of UnsatisfiedLinkError that might occur due to a not reliable native implementation of libraries loading
As an example of other library loaders, you can use ReLinker together with SoLibraryLoader
| Modifier and Type | Class and Description |
|---|---|
static interface |
SoLibraryLoader.LibraryLoadHandler |
static class |
SoLibraryLoader.NativeLibraryLoadHandler
A default
SoLibraryLoader.LibraryLoadHandler implementation using native System.loadLibrary(String) call |
| Constructor and Description |
|---|
SoLibraryLoader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadLibrary(java.lang.String libname)
Loads the dynamic library with the specified library name.
|
static void |
setLibraryLoadHandler(SoLibraryLoader.LibraryLoadHandler libraryLoadHandler)
Set a custom
SoLibraryLoader.LibraryLoadHandler implementation to load the libraries in your own way |
public static void loadLibrary(java.lang.String libname)
Runtime.loadLibrary(String)libname - name of the library to loadpublic static void setLibraryLoadHandler(SoLibraryLoader.LibraryLoadHandler libraryLoadHandler)
SoLibraryLoader.LibraryLoadHandler implementation to load the libraries in your own waylibraryLoadHandler -