Language

CoreWebView2Notification.ReportClicked Method

Definition

The host may run this to report the notification has been clicked, and it will cause the click event to be raised for non-persistent notifications and the notificationclick event for persistent notifications.

public void ReportClicked();
member this.ReportClicked : unit -> unit
Public Sub ReportClicked ()

Remarks

You must not run this unless you are handling the NotificationReceived event. API throws an exception with HRESULT_FROM_WIN32(ERROR_INVALID_STATE) if Handled is false or ReportShown() has not been run when this is called.

Applies to