Skip to main content

IActivatableApplicationLifetime Interface

Obsolete.

This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().

Not client implementable.

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

Definition

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

[NotClientImplementableAttribute]
[ObsoleteAttribute("This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().",
true)]
public interface IActivatableApplicationLifetime : IActivatableLifetime
View Source
ImplementsIActivatableLifetime

Methods

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

Events

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

See Also

Reference

Avalonia.Controls.ApplicationLifetimes Namespace