Class Application
Represents an abstract base class for Xui applications. This class is paired at runtime with a platform-specific counterpart, which delegates to actual system APIs on macOS, Windows, Android, etc.
Users should subclass Application, override the Start() method, and call Run() to launch the application.
public abstract class Application
- Inheritance
-
Application
- Inherited Members
Constructors
Application()
Initializes a new instance of the Application class.
public Application()
Methods
Run()
Starts the main application loop by delegating to the platform-specific run loop. This method may block until the application exits, or may return immediately if the platform bootstraps a runtime loop before instantiating the app delegate.
public int Run()
Returns
- int
The application’s exit code.
Start()
Called by the runtime after initialization. Override this method to set up application state and display the initial UI.
public abstract void Start()