package mobile
import "fyne.io/fyne/v2/internal/driver/mobile"
Index ¶
- func NewGoMobileDriver() fyne.Driver
- func ShowFileOpenPicker(callback func(fyne.URIReadCloser, error), filter storage.FileFilter)
- func ShowFileSavePicker(callback func(fyne.URIWriteCloser, error), filter storage.FileFilter, filename string)
- func ShowFolderOpenPicker(callback func(fyne.ListableURI, error))
- type Configuration
- type ConfiguredDriver
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.
Source Files ¶
animation.go canvas.go clipboard.go clipboard_desktop.go device.go device_desktop.go driver.go file.go file_desktop.go folder.go folder_desktop.go keyboard.go menu.go menubutton.go repository.go uri.go window.go
Directories ¶
Path | Synopsis |
---|---|
internal/driver/mobile/app | Package app lets you write portable all-Go apps for Android and iOS. |
internal/driver/mobile/event | |
internal/driver/mobile/event/key | Package key defines an event for physical keyboard keys. |
internal/driver/mobile/event/lifecycle | Package lifecycle defines an event for an app's lifecycle. |
internal/driver/mobile/event/paint | Package paint defines an event for the app being ready to paint. |
internal/driver/mobile/event/size | Package size defines an event for the dimensions, physical resolution and orientation of the app's window. |
internal/driver/mobile/event/touch | Package touch defines an event for touch input. |
internal/driver/mobile/gl | Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0. |
internal/driver/mobile/mobileinit | Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps. |
- Version
- v2.5.4 (latest)
- Published
- Feb 1, 2025
- Platform
- linux/amd64
- Imports
- 38 packages
- Last checked
- 1 month ago –
Tools for package owners.