public async Task ConnectAsync(string name) { if (Status != ReduxStatus.Idle) { throw new Exception("Can not connect as the tool is not idle"); } Status = ReduxStatus.Requested; Id = await ScriptService.InvokeAsync <object>("Skclusive.Script.DevTools.ReduxTool.connect", DotNetObjectReference.Create(this), name); }
public ValueTask <Boundry> GetAnchorBoundryAsync(ElementReference?anchorRef, ElementReference?paperRef) { return(ScriptService.InvokeAsync <Boundry>("Skclusive.Material.Popover.getAnchorBoundry", anchorRef, paperRef)); }
public ValueTask <double> GetContentAnchorOffsetAsync(ElementReference?contentAnchor, ElementReference?element) { return(ScriptService.InvokeAsync <double>("Skclusive.Material.Popover.getContentAnchorOffset", contentAnchor, element)); }