//clika-runtime/io.clika.runtime/ClikaRtAndroid/load
load
[android]\
fun load(context: Context, license: String? = null)
pinCacheRoot, place license when given, then ClikaRt.load: one call readies the binding on Android. license 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.codeNameLICENSE_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 | as ClikaRt.load does (a runtime library of another release than this binding is refused before any other call). |