Webview
Namespace NetWiv · Assembly NetWiv.Core
public class WebviewProperties
Section titled “Properties”public string Label { get; }Window
Section titled “Window”public Window Window { get; }Methods
Section titled “Methods”ClearAllBrowsingDataAsync
Section titled “ClearAllBrowsingDataAsync”public Task ClearAllBrowsingDataAsync(CancellationToken cancellationToken = null);CloseAsync
Section titled “CloseAsync”public Task CloseAsync(CancellationToken cancellationToken = null);public void Emit(string eventName, JsonElement payload);EmitAsync
Section titled “EmitAsync”public Task EmitAsync(string eventName, JsonElement payload);EmitTo
Section titled “EmitTo”public void EmitTo(RuntimeEventTarget target, string eventName, JsonElement payload);public void EmitTo(string label, string eventName, JsonElement payload);EmitToAsync
Section titled “EmitToAsync”public Task EmitToAsync(RuntimeEventTarget target, string eventName, JsonElement payload);public Task EmitToAsync(string label, string eventName, JsonElement payload);EvaluateScript
Section titled “EvaluateScript”public void EvaluateScript(string script);HideAsync
Section titled “HideAsync”public Task HideAsync(CancellationToken cancellationToken = null);InvokeAsync
Section titled “InvokeAsync”public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);Listen
Section titled “Listen”public IDisposable Listen(string eventName, Action<AppEvent> handler);ListenAny
Section titled “ListenAny”public IDisposable ListenAny(string eventName, Action<AppEvent> handler);OnDragDropEvent
Section titled “OnDragDropEvent”public IDisposable OnDragDropEvent(Action<AppEvent<DragDropEvent>> handler);public IDisposable Once(string eventName, Action<AppEvent> handler);OnceAny
Section titled “OnceAny”public IDisposable OnceAny(string eventName, Action<AppEvent> handler);PositionAsync
Section titled “PositionAsync”public Task<PhysicalPosition> PositionAsync(CancellationToken cancellationToken = null);ReparentAsync
Section titled “ReparentAsync”public Task ReparentAsync(string windowLabel, CancellationToken cancellationToken = null);SetAutoResizeAsync
Section titled “SetAutoResizeAsync”public Task SetAutoResizeAsync(bool value, CancellationToken cancellationToken = null);SetBackgroundColorAsync
Section titled “SetBackgroundColorAsync”public Task SetBackgroundColorAsync(RgbaColor? color, CancellationToken cancellationToken = null);SetFocusAsync
Section titled “SetFocusAsync”public Task SetFocusAsync(CancellationToken cancellationToken = null);SetPositionAsync
Section titled “SetPositionAsync”public Task SetPositionAsync(IDpiPosition position, CancellationToken cancellationToken = null);SetSizeAsync
Section titled “SetSizeAsync”public Task SetSizeAsync(IDpiSize size, CancellationToken cancellationToken = null);SetZoomAsync
Section titled “SetZoomAsync”public Task SetZoomAsync(double scaleFactor, CancellationToken cancellationToken = null);ShowAsync
Section titled “ShowAsync”public Task ShowAsync(CancellationToken cancellationToken = null);SizeAsync
Section titled “SizeAsync”public Task<PhysicalSize> SizeAsync(CancellationToken cancellationToken = null);Unlisten
Section titled “Unlisten”public void Unlisten(long id);