Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
package driver
AndroidContext
AndroidWindowContext
MacWindowContext
NativeWindow
UnknownContext
WaylandWindowContext
WindowsWindowContext
X11WindowContext
driver/desktop
package desktop
App
Canvas
Cursor
Cursorable
CustomShortcut
Driver
Hoverable
Keyable
Modifier
Mouseable
MouseButton
MouseEvent
StandardCursor
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "driver"
driver
import "fyne.io/fyne/v2/driver"
Usage
func RunNative
func RunNative(fn func(any) 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