Share via


BlazorWebView.IWebRequestInterceptingWebView.WebResourceRequested Method

Definition

Invoked when a web resource is requested. This event can be used to intercept requests and provide custom responses.

 virtual bool Microsoft.Maui.IWebRequestInterceptingWebView.WebResourceRequested(Microsoft::Maui::WebResourceRequestedEventArgs ^ args) = Microsoft::Maui::IWebRequestInterceptingWebView::WebResourceRequested;
bool IWebRequestInterceptingWebView.WebResourceRequested(Microsoft.Maui.WebResourceRequestedEventArgs args);
abstract member Microsoft.Maui.IWebRequestInterceptingWebView.WebResourceRequested : Microsoft.Maui.WebResourceRequestedEventArgs -> bool
override this.Microsoft.Maui.IWebRequestInterceptingWebView.WebResourceRequested : Microsoft.Maui.WebResourceRequestedEventArgs -> bool
Function WebResourceRequested (args As WebResourceRequestedEventArgs) As Boolean Implements IWebRequestInterceptingWebView.WebResourceRequested

Parameters

args
WebResourceRequestedEventArgs

The event arguments containing the request details.

Returns

true if the request was handled; otherwise, false.

Implements

Applies to