Documentation ¶
Overview ¶
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
Long-term, some code in this package should consider moving into Go stdlib.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunOnJVM ¶
RunOnJVM runs fn on a new goroutine locked to an OS thread with a JNIEnv.
RunOnJVM blocks until the call to fn is complete. Any Java exception or failure to attach to the JVM is returned as an error.
The function fn takes vm, the current JavaVM*, env, the current JNIEnv*, and ctx, a jobject representing the global android.context.Context.
func SetCurrentContext ¶
SetCurrentContext populates the global Context object with the specified current JavaVM instance (vm) and android.context.Context object (ctx). The android.context.Context object must be a global reference.
Types ¶
This section is empty.