CronetEngine.Builder.LibraryLoader

public abstract class CronetEngine.Builder.LibraryLoader


A class which provides a method for loading the cronet native library. Apps needing to implement custom library loading logic can inherit from this class and pass an instance to setLibraryLoader. For example, this might be required to work around UnsatisfiedLinkErrors caused by flaky installation on certain older devices.

Summary

Public constructors

Public methods

abstract void

Loads the native library.

Public constructors

LibraryLoader

public LibraryLoader()

Public methods

loadLibrary

public abstract void loadLibrary(String libName)

Loads the native library.

Parameters
String libName

name of the library to load