/// <summary>
 /// fired when the screen changes orientation.
 /// </summary>
 /// <param name="toDo"></param>
 /// <returns></returns>
 public async ValueTask <IAsyncDisposable> OnChange(Func <ValueTask> toDo)
 {
     return(await jsRuntime.AddEventListener(screenRef, "orientation", "change",
                                             CallBackInteropWrapper.Create(toDo)).ConfigureAwait(false));
 }
Beispiel #2
0
 /// <summary>
 /// This event is fired when the browser's resource timing buffer is full.
 /// </summary>
 /// <param name="toDo"></param>
 /// <returns></returns>
 public async Task <IAsyncDisposable> OnResourceTimingBufferFull(Func <Task> toDo)
 {
     return(await jsRuntime.AddEventListener(windowRef, "performance", "resourcetimingbufferfull", CallBackInteropWrapper.Create(toDo)));
 }
Beispiel #3
0
 /// <summary>
 /// fired when the screen changes orientation.
 /// </summary>
 /// <param name="toDo"></param>
 /// <returns></returns>
 public async Task <IAsyncDisposable> OnChange(Func <Task> toDo)
 {
     return(await jsRuntime.AddEventListener(windowRef, "screen.orientation", "change", CallBackInteropWrapper.Create(toDo)));
 }