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)
- C#
- VB
- F#
[NotClientImplementableAttribute]
[ObsoleteAttribute("This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().",
true)]
public interface IActivatableApplicationLifetime : IActivatableLifetime
<NotClientImplementableAttribute>
<ObsoleteAttribute("This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().",
true)>
Public Interface IActivatableApplicationLifetime
Inherits IActivatableLifetime
[<NotClientImplementableAttribute>]
[<ObsoleteAttribute("This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().",
true)>]
type IActivatableApplicationLifetime =
interface
interface IActivatableLifetime
end
Implements | IActivatableLifetime |
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
Activated | An event that is raised when the application is Activated for various reasons as described by the ActivationKind enumeration. (Inherited from IActivatableLifetime) |
Deactivated | An event that is raised when the application is Deactivated for various reasons as described by the ActivationKind enumeration. (Inherited from IActivatableLifetime) |