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:
- Context.getFilesDir()
- Context.getResources()
- Context.getSystemService(Context.WINDOW_SERVICE)
- Context.startActivity(Intent)
- Context.getDisplay()
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 |
|