Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
package repository
CopyableRepository
CustomURIRepository
HierarchicalRepository
ListableRepository
MovableRepository
Repository
WritableRepository
test
theme
widget
Fyne API "storage.ExtensionFileFilter"
storage.ExtensionFileFilter
import "fyne.io/fyne/v2/storage"
Usage
type ExtensionFileFilter
type ExtensionFileFilter struct {
Extensions []string
}
ExtensionFileFilter represents a file filter based on the ending of file names, for example “.txt” and “.png”.
func (*ExtensionFileFilter) Matches
func (e *ExtensionFileFilter) Matches(uri fyne.URI) bool
Matches returns true if a file URI has one of the filtered extensions.