driver

package
v2.0.0-...-f45adc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNative

func RunNative(fn func(interface{}) error) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL