storage.MimeTypeFileFilter
import "fyne.io/fyne/v2/storage"
Usage
type MimeTypeFileFilter
type MimeTypeFileFilter struct {
MimeTypes []string
}
MimeTypeFileFilter represents a file filter based on the files mime type, for example “image/*”, “audio/mp3”.
func (*MimeTypeFileFilter) Matches
func (mt *MimeTypeFileFilter) Matches(uri fyne.URI) bool
Matches returns true if a file URI has one of the filtered mimetypes.