DesktopRuntime
이 콘텐츠는 아직 번역되지 않았습니다.
Namespace NetWiv.Platform.Desktop · Assembly NetWiv.Platform.Desktop
public sealed class DesktopRuntime : IDesktopRuntimeNativeAOT desktop runtime backed by the pinned wry, tao, muda and tray-icon libraries.
Constructors
Section titled “Constructors”DesktopRuntime
Section titled “DesktopRuntime”public DesktopRuntime();Properties
Section titled “Properties”Backend
Section titled “Backend”public string Backend { get; }Methods
Section titled “Methods”Dispatch
Section titled “Dispatch”public void Dispatch(Action action);EvaluateScript
Section titled “EvaluateScript”public void EvaluateScript(string webviewLabel, string script);public void EvaluateScript(string webviewLabel, string script, ulong documentId);public void Exit(int exitCode = 0);InvokeAsync
Section titled “InvokeAsync”public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);public Task<JsonElement> InvokeAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);InvokeResponseAsync
Section titled “InvokeResponseAsync”public Task<RuntimeInvokeResponse> InvokeResponseAsync(string command, JsonElement args, RuntimeCommandContext context, CancellationToken cancellationToken = null);ResolveDirectoryAsync
Section titled “ResolveDirectoryAsync”public Task<string> ResolveDirectoryAsync(int directory, string path, string identifier, CancellationToken cancellationToken = null);public void Run(RuntimeContext context);