Table of Contents

Class IOSRunLoop

Namespace
Xui.Runtime.IOS.Actual
Assembly
Xui.Runtime.IOS.dll
public class IOSRunLoop : IRunLoop, IDispatcher
Inheritance
IOSRunLoop
Implements
Inherited Members

Constructors

IOSRunLoop(Application)

public IOSRunLoop(Application application)

Parameters

application Application

Properties

Application

protected Application Application { get; }

Property Value

Application

Methods

ApplicationDidFinishLaunchingWithOptions(nint, nint, nint, nint)

public static bool ApplicationDidFinishLaunchingWithOptions(nint self, nint sel, nint app, nint opt)

Parameters

self nint
sel nint
app nint
opt nint

Returns

bool

Post(Action)

Posts the specified callback to be executed on the dispatcher's thread (typically the UI thread). Use this method when calling from a background thread and needing to safely transition to the main thread for UI updates or layout work.

public void Post(Action callback)

Parameters

callback Action

The action to execute on the dispatcher's thread.

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.