Stay organized with collections Save and categorize content based on your preferences.

Initialization (Android only)

This module initializes the JavaVM and Android context.

Summary

Important: This function is only used by Android and it's mandatory to call this function before using any other Cardboard APIs.

Functions

Cardboard_initializeAndroid(JavaVM *vm, jobject context)
void
Initializes the JavaVM and Android context.

Functions

Cardboard_initializeAndroid

void Cardboard_initializeAndroid(
  JavaVM *vm,
  jobject context
)

Initializes the JavaVM and Android context.

The following methods are required to work for the parameter context:

vm Must not be null. context Must not be null. When it is unmet a call to this function results in a no-op.

Details
Parameters
vm
JavaVM pointer
context
The current Android Context. It is generally an Activity instance or wraps one.