Skip to main content

TryLeaveBackground Method

Tells the application that it should attempt to leave its background state. For example on OSX this would be [NSApp unhide]

Definition​

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

bool TryLeaveBackground()

Return Value​

Boolean
true if it was possible and the platform supports this. false otherwise

See Also​

Reference​

IActivatableLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace