---
title: "load"
sidebar_label: "load"
description: "Kotlin binding reference: load."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ClikaRtAndroid](index.md)/[load](load.md)

# load

[android]\

@[JvmStatic](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html)

@[JvmOverloads](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-overloads/index.html)

fun [load](load.md)(context: Context, license: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null)

[pinCacheRoot](pinCacheRoot.md), place [license](load.md) when given, then [ClikaRt.load](../ClikaRt/load.md): one call readies the binding on Android. [license](load.md) is the runtime's license credential (the `CLIKA1-...` text, or the path of a file holding it): a non-null value is set as `CLIKA_RT_LICENSE` for this process before the binding loads, replacing a value already present, and `null` leaves the environment as it is. Without a valid credential the runtime's calls fail ([ClikaRtException.codeName](../ClikaRtException/codeName.md)`LICENSE_FAILED`, or `LICENSE_EXPIRED` for a license past its end date). While the license server cannot be reached they fail with `LICENSE_SERVER_UNREACHABLE` instead, and succeed again once the server answers.

#### Throws

| | |
|---|---|
| [ClikaRtException](../ClikaRtException/index.md) | as [ClikaRt.load](../ClikaRt/load.md) does (a runtime library of another release than this binding is refused before any other call). |