Exemple #1
0
 /// <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"));
 }
Exemple #2
0
 /// <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"));
 }
Exemple #3
0
 /// <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"));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 /// <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));
 }