Fyne API "binding.ExternalBool"


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


type ExternalBool

type ExternalBool interface {
	Reload() error

ExternalBool supports binding a bool value to an external value.

Since: 2.0

func BindBool

func BindBool(v *bool) ExternalBool

BindBool returns a new bindable value that controls the contents of the provided bool variable. If your code changes the content of the variable this refers to you should call Reload() to inform the bindings.

Since: 2.0