/// <summary> /// Will return an instance of WindowNavigator that will give access to window.navigator API /// </summary> /// <value></value> public async ValueTask <WindowNavigator> Navigator() { return(await JsRuntime.GetInstancePropertyWrapper <WindowNavigator>(JsObjectRef, "navigator")); }
/// <summary> /// represents the visual viewport for a given window. For a page containing iframes, each iframe, as well as the containing page, will have a unique window object. Each window on a page will have a unique VisualViewport representing the properties associated with that window. /// </summary> /// <returns></returns> public async ValueTask <WindowVisualViewPort> VisualViewport() { return(await JsRuntime.GetInstancePropertyWrapper <WindowVisualViewPort>(JsObjectRef, "visualViewport")); }
/// <summary> /// Will return an instance of WindowNavigator that will give access to window.navigator API /// </summary> /// <value></value> public async ValueTask <WindowScreen> Screen() { return(await JsRuntime.GetInstancePropertyWrapper <WindowScreen>(JsObjectRef, "screen")); }
/// <summary> /// Returns a reference to the parent of the current window /// </summary> /// <returns></returns> public async ValueTask <WindowInterop> Top() { return(await JsRuntime.GetInstancePropertyWrapper <WindowInterop>(JsObjectRef, "top", SerializationSpec)); }
/// <summary> /// Returns a reference to the parent of the current window or child frame /// </summary> /// <returns></returns> public async ValueTask <WindowInterop> Parent() { return(await JsRuntime.GetInstancePropertyWrapper <WindowInterop>(JsObjectRef, "parent", SerializationSpec).ConfigureAwait(false)); }