Fyne API "binding.URI"

binding.URI


import "fyne.io/fyne/v2/data/binding"

Usage

type URI

type URI interface {
	DataItem
	Get() (fyne.URI, error)
	Set(fyne.URI) error
}

URI supports binding a fyne.URI value.

Since: 2.1

func NewURI

func NewURI() URI

NewURI returns a bindable fyne.URI value that is managed internally.

Since: 2.1

func StringToURI

func StringToURI(str String) URI

StringToURI creates a binding that connects a String data item to a URI. Changes to the String will be parsed and pushed to the URI if the parse was successful, and setting the URI update the String binding.

Since: 2.1