콘텐츠로 이동

App

이 콘텐츠는 아직 번역되지 않았습니다.

Namespace NetWiv · Assembly NetWiv.Core

public sealed class App : IDisposable
public AppHandle Handle { get; }
public IReadOnlyCollection<WebviewWindow> WebviewWindows { get; }
public IReadOnlyCollection<Webview> Webviews { get; }
public IReadOnlyCollection<Window> Windows { get; }
public FileScope AssetProtocolScope();
public void Dispose();
public void Emit(string eventName, JsonElement payload);
public void EmitTo(RuntimeEventTarget target, string eventName, JsonElement payload);
public void EmitTo(string label, string eventName, JsonElement payload);
public Webview GetWebview(string label);
public WebviewWindow GetWebviewWindow(string label);
public Window GetWindow(string label);
public IDisposable Listen(string eventName, Action<AppEvent> handler);
public IDisposable ListenAny(string eventName, Action<AppEvent> handler);
public bool Manage<T>(T value);
public void OnMenuEvent(Action<AppHandle, MenuEvent> handler);
public void OnTrayIconEvent(Action<AppHandle, TrayIconEvent> handler);
public IDisposable Once(string eventName, Action<AppEvent> handler);
public IDisposable OnceAny(string eventName, Action<AppEvent> handler);
public void Run();
public State<T> State<T>();
public State<T>? TryState<T>();
public void Unlisten(long id);
public bool Unmanage<T>(out T value);