Fyne API "dialog.Dialog"

dialog.Dialog


import "fyne.io/fyne/v2/dialog"

Usage

type Dialog

type Dialog interface {
	Show()
	Hide()
	SetDismissText(label string)
	SetOnClosed(closed func())
	Refresh()
	Resize(size fyne.Size)

	// Since: 2.1
	MinSize() fyne.Size
}

Dialog is the common API for any dialog window with a single dismiss button

func NewError

func NewError(err error, parent fyne.Window) Dialog

NewError creates a dialog over the specified window for an application error. The message is extracted from the provided error (should not be nil). After creation you should call Show().

func NewInformation

func NewInformation(title, message string, parent fyne.Window) Dialog

NewInformation creates a dialog over the specified window for user information. The title is used for the dialog window and message is the content. After creation you should call Show().