# CronetEngine.Builder.LibraryLoader


```
abstract class CronetEngine.Builder.LibraryLoader
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. Now that Cronet's minSDK = 24 this method is obsolete and is a no-op.

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 `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/CronetEngine.Builder#setLibraryLoader(org.chromium.net.CronetEngine.Builder.LibraryLoader)`. For example, this might be required to work around `UnsatisfiedLinkError`s caused by flaky installation on certain older devices.

## Summary

| ### Public constructors |
|---|
| `[LibraryLoader](https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/CronetEngine.Builder.LibraryLoader#LibraryLoader())()` |

| ### Public functions |
|---|---|
| `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `[loadLibrary](https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/CronetEngine.Builder.LibraryLoader#loadLibrary(java.lang.String))(libName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` **This function is deprecated.** System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. <br /> |

## Public constructors

### LibraryLoader

```
[LibraryLoader](https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/CronetEngine.Builder.LibraryLoader#LibraryLoader())()
```

## Public functions

### loadLibrary

```
abstract fun [loadLibrary](https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/CronetEngine.Builder.LibraryLoader#loadLibrary(java.lang.String))(libName: String!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. Now that Cronet's minSDK = 24 this method is obsolete and is a no-op.

Loads the native library.

| Parameters |
|---|---|
| `libName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | name of the library to load |