Skip to content

DesktopRuntime

Namespace NetWiv.Platform.Desktop · Assembly NetWiv.Platform.Desktop

public sealed class DesktopRuntime : IDesktopRuntime

NativeAOT desktop runtime backed by the pinned wry, tao, muda and tray-icon libraries.

public DesktopRuntime();
public string Backend { get; }
public void Dispatch(Action action);
public void EvaluateScript(string webviewLabel, string script);
public void EvaluateScript(string webviewLabel, string script, ulong documentId);
public void Exit(int exitCode = 0);
public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);
public Task<JsonElement> InvokeAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);
public Task<RuntimeInvokeResponse> InvokeResponseAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);
public Task<string> ResolveDirectoryAsync(int directory, string path, string identifier, CancellationToken cancellationToken = null);
public void Run(RuntimeContext context);