Interface IControlledApplicationLifetime
- Namespace
- Avalonia.Controls.ApplicationLifetimes
- Assembly
- Avalonia.Controls.dll
[NotClientImplementable]
public interface IControlledApplicationLifetime : IApplicationLifetime
Methods
Shutdown(int)
Shuts down the application and sets the exit code that is returned to the operating system when the application exits.
void Shutdown(int exitCode = 0)
Parameters
exitCode
intAn integer exit code for an application. The default exit code is 0.
Events
Exit
Sent when the application is exiting.
event EventHandler<ControlledApplicationLifetimeExitEventArgs> Exit
Event Type
Startup
Sent when the application is starting up.
event EventHandler<ControlledApplicationLifetimeStartupEventArgs> Startup