mobile

package
v2.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: BSD-3-Clause Imports: 38 Imported by: 0

README

This directory is a fork of the golang.org/x/mobile package. It has largely
deviated from the original package to better support fyne.

The full project, its license can be found at https://github.com/golang/mobile

This package is for the purpose of removing the dependency of mobile drivers
and will be removed in due course.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoMobileDriver

func NewGoMobileDriver() fyne.Driver

NewGoMobileDriver sets up a new Driver instance implemented using the Go Mobile extension and OpenGL bindings.

func ShowFileOpenPicker

func ShowFileOpenPicker(callback func(fyne.URIReadCloser, error), filter storage.FileFilter)

ShowFileOpenPicker loads the native file open dialog and returns the chosen file path via the callback func.

func ShowFileSavePicker

func ShowFileSavePicker(callback func(fyne.URIWriteCloser, error), filter storage.FileFilter, filename string)

ShowFileSavePicker loads the native file save dialog and returns the chosen file path via the callback func.

func ShowFolderOpenPicker

func ShowFolderOpenPicker(callback func(fyne.ListableURI, error))

ShowFolderOpenPicker loads the native folder open dialog and calls back the chosen directory path as a ListableURI.

Types

type Configuration

type Configuration struct {
	SystemTheme fyne.ThemeVariant
}

Configuration is the system information about the current device

type ConfiguredDriver

type ConfiguredDriver interface {
	SetOnConfigurationChanged(func(*Configuration))
}

ConfiguredDriver is a simple type that allows packages to hook into configuration changes of this driver.

Directories

Path Synopsis
Package app lets you write portable all-Go apps for Android and iOS.
Package app lets you write portable all-Go apps for Android and iOS.
event
key
Package key defines an event for physical keyboard keys.
Package key defines an event for physical keyboard keys.
lifecycle
Package lifecycle defines an event for an app's lifecycle.
Package lifecycle defines an event for an app's lifecycle.
paint
Package paint defines an event for the app being ready to paint.
Package paint defines an event for the app being ready to paint.
size
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
touch
Package touch defines an event for touch input.
Package touch defines an event for touch input.
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.

Jump to

Keyboard shortcuts

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