---
title: "ClikaRT::platform"
sidebar_label: "platform"
description: "Namespace ClikaRT::platform"
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--namespace">namespace</span>

## Functions

### attach\_android\_app() {#attach_android_app}

<div class="api-signature">

`void` **`attach_android_app`**(`void*` `jni_env`, `void*` `context`)

</div>

<div class="api-declared">

Declared in `ClikaRT/platform/android.h`, line 35

</div>

## `ClikaRT/platform/android.h` {#android-h}

```cpp
#include <ClikaRT/platform/android.h>
```

Hand [ClikaRT](../../index.md) your Android app's state, so the runtime can read the Android facts only the Java framework exposes.

The Android binding does this for you: `ClikaRtAndroid.load(context)` makes the call below before anything else. A native host that loads [ClikaRT](../../index.md) itself (its own JNI code, no binding) makes it once, from a JNI call, before its first other [ClikaRT](../../index.md) call.
