NativeLibraryLoader

fun interface NativeLibraryLoader

Strategy used to load the SDK's native library.

Implement this interface and pass an instance to com.microblink.capture.CaptureSDK.setNativeLibraryLoader before any other SDK call when you need full control over how the native library is loaded (for example, to use a custom loader that handles edge cases on certain Android versions instead of the default System.loadLibrary).

Functions

Link copied to clipboard
abstract fun loadLibrary(libraryName: String)

Load the native library with the given libraryName. The name is provided without the lib prefix and the .so extension, matching the contract of System.loadLibrary.