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

This method is deprecated.

System.loadLibrary was unreliable on minSDK <= 23, and this method was used to provide alternative, more reliable loaders.

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