Skip to main content

IActivatableLifetime Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

An interface for ApplicationLifetimes where the application can be Activated and Deactivated.

Definition

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

[NotClientImplementableAttribute]
public interface IActivatableLifetime

Methods

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

Events

ActivatedAn event that is raised when the application is Activated for various reasons as described by the ActivationKind enumeration.
DeactivatedAn event that is raised when the application is Deactivated for various reasons as described by the ActivationKind enumeration.

See Also

Reference

Avalonia.Controls.ApplicationLifetimes Namespace