Partager via


CoreWebView2.NotificationReceived Event

Definition

Add an event handler for the NotificationReceived event for non-persistent notifications.

        If a deferral is not taken on the event args, the subsequent scripts after
        the DOM notification creation call (i.e. `Notification()`) are blocked
        until the event handler returns. If a deferral is taken, the scripts are
        blocked until the deferral is completed.
public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2NotificationReceivedEventArgs> NotificationReceived;
member this.NotificationReceived : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2NotificationReceivedEventArgs> 
Public Custom Event NotificationReceived As EventHandler(Of CoreWebView2NotificationReceivedEventArgs) 

Event Type

Applies to