CronetEngine.Builder.LibraryLoader
Stay organized with collections
Save and categorize content based on your preferences.
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
CronetEngine.Builder.setLibraryLoader(CronetEngine.Builder.LibraryLoader)
. For example, this might be required to
work around UnsatisfiedLinkError
s caused by flaky installation on certain older
devices.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
abstract
void
loadLibrary
(String libName)
Loads the native library.
Parameters
libName |
name of the library to load
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-10-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-26 UTC."],[],[],null,["# CronetEngine.Builder.LibraryLoader\n\npublic static abstract class **CronetEngine.Builder.LibraryLoader** extends Object \nA class which provides a method for loading the cronet native library. Apps needing to\nimplement custom library loading logic can inherit from this class and pass an instance\nto\n[CronetEngine.Builder.setLibraryLoader(CronetEngine.Builder.LibraryLoader)](../../../../reference/org/chromium/net/CronetEngine.Builder.html#setLibraryLoader(org.chromium.net.CronetEngine.Builder.LibraryLoader)). For example, this might be required to\nwork around `UnsatisfiedLinkError`s caused by flaky installation on certain older\ndevices. \n\n### Public Constructor Summary\n\n|---|-------------------------------------------------------------------------------------------------------------------|\n| | [LibraryLoader](../../../../reference/org/chromium/net/CronetEngine.Builder.LibraryLoader.html#LibraryLoader())() |\n\n### Public Method Summary\n\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [loadLibrary](../../../../reference/org/chromium/net/CronetEngine.Builder.LibraryLoader.html#loadLibrary(java.lang.String))(String libName) Loads the native library. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**LibraryLoader**\n()\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public abstract void\n**loadLibrary**\n(String libName)\n\nLoads the native library. \n\n##### Parameters\n\n| libName | name of the library to load |\n|---------|-----------------------------|"]]