Table of Contents

Class XuiApplication

Namespace
Xui.Runtime.Android.Actual
Assembly
Xui.Runtime.Android.dll
public class XuiApplication : Android.App.Application, IRunLoop
Inheritance
XuiApplication
Implements

Constructors

XuiApplication(nint, JniHandleOwnership)

public XuiApplication(nint handle, JniHandleOwnership ownership)

Parameters

handle nint
ownership JniHandleOwnership

Properties

Abstract

public Application? Abstract { get; }

Property Value

Application

Instance

public static XuiApplication? Instance { get; }

Property Value

XuiApplication

Methods

OnCreate()

public override void OnCreate()

OnLowMemory()

public override void OnLowMemory()

OnTerminate()

public override void OnTerminate()

OnTrimMemory(TrimMemory)

public override void OnTrimMemory(TrimMemory level)

Parameters

level TrimMemory

Quit()

Requests that the run loop exit gracefully. On platforms with a definite exit (Win32, macOS) this posts a quit message to the main thread. On platforms without a run loop (iOS, Browser) this is a no-op.

public void Quit()

Run()

Starts the main run loop for the application. This method may block until the application terminates or exits naturally. On platforms with built-in UI event loops (e.g., iOS, Android), this method may return immediately after bootstrapping the application delegate.

public int Run()

Returns

int

The application’s exit code.