AndroidContext
Process-wide Android JNI bootstrap for SDK platform services.
#include <android_context.hpp>Classes
class ROGUE_SDK_API
Static bootstrap interface for providing Android JNI context to the SDK.
All methods must be called from the application's JNI layer before any SDK subsystem is attached. The class is not instantiable.
static auto SetJvm(JavaVM* vm) -> voidRegisters the process-wide JavaVM with the SDK.
Call once from JNI_OnLoad.
| Parameter | Type | Description |
|---|---|---|
vm |
JavaVM* |
The JavaVM pointer provided by the JNI runtime. |
static auto SetService(JNIEnv* env, jobject service) -> voidRegisters the platform service object with the SDK.
Call once from the matching JNI entry point after the service is created. Releases any previously held reference on subsequent calls.
| Parameter | Type | Description |
|---|---|---|
env |
JNIEnv* |
The JNI environment for the calling thread. |
service |
jobject |
The platform service object to cache. |
static auto SetActiveNetwork(uint64_t network_handle) -> voidUpdates the active Android network handle used by SDK networking.
Call from the application's network callback whenever the active network changes. Pass 0 to clear the current handle.
| Parameter | Type | Description |
|---|---|---|
network_handle |
uint64_t |
Handle identifying the active network, as returned |