public class NativeLoader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
init(NativeLoaderDelegate delegate)
Initializes native code loading for this app.
|
static boolean |
isInitialized()
Determine whether
NativeLoader has already been initialized. |
static boolean |
loadLibrary(java.lang.String shortName)
Load a shared library, initializing any JNI binding it contains.
|
public static boolean loadLibrary(java.lang.String shortName)
shortName - Name of library to find, without "lib" prefix or ".so" suffixpublic static void init(NativeLoaderDelegate delegate)
loadLibrary(String).delegate - Delegate to use for all loadLibrary calls.public static boolean isInitialized()
NativeLoader has already been initialized. This method should not
normally be used, because initialization should be performed only once during app startup.
However, libraries that want to provide a default initialization for NativeLoader to
hide its existence from the app can use this method to avoid re-initializing.init(NativeLoaderDelegate) has been called.