Fyne API "fyne.Lifecycle"
fyne.Lifecycle
import "fyne.io/fyne/v2"
Usage
type Lifecycle
type Lifecycle interface {
// SetOnEnteredForeground hooks into the app becoming foreground and gaining focus.
SetOnEnteredForeground(func())
// SetOnExitedForeground hooks into the app losing input focus and going into the background.
SetOnExitedForeground(func())
// SetOnStarted hooks into an event that says the app is now running.
SetOnStarted(func())
// SetOnStopped hooks into an event that says the app is no longer running.
SetOnStopped(func())
}
Lifecycle represents the various phases that an app can transition through.
Since:
2.1