Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunNative ¶
RunNative provides a way to execute code within the platform-specific runtime context for various runtimes. This is mostly useful for Android where the JVM provides functionality that is not accessible directly in CGo. The call for most platforms will just execute passing an `UnknownContext` and returning any error reported.
Since: 2.3
Types ¶
type AndroidContext ¶
type AndroidContext struct {
VM, Env, Ctx uintptr
}
AndroidContext is passed to the `RunNative` callback when it is executed on an Android device. The VM, Env and Ctx pointers are reqiured to make various calls into JVM methods.
Since: 2.3
type UnknownContext ¶
type UnknownContext struct{}
UnknownContext is passed to the `RunNative` callback when it is executed on devices without special native context.
Since: 2.3
Directories ¶
Path | Synopsis |
---|---|
Package desktop provides desktop specific driver functionality.
|
Package desktop provides desktop specific driver functionality. |
Package mobile provides mobile specific driver functionality.
|
Package mobile provides mobile specific driver functionality. |