Share via


IWebRequestInterceptingWebView.WebResourceRequested Method

Definition

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

public:
 virtual bool WebResourceRequested(Microsoft::Maui::WebResourceRequestedEventArgs ^ args);
public virtual bool WebResourceRequested(Microsoft.Maui.WebResourceRequestedEventArgs args);
abstract member WebResourceRequested : Microsoft.Maui.WebResourceRequestedEventArgs -> bool
override this.WebResourceRequested : Microsoft.Maui.WebResourceRequestedEventArgs -> bool
Public Overridable Function WebResourceRequested (args As WebResourceRequestedEventArgs) As Boolean

Parameters

args
WebResourceRequestedEventArgs

The event arguments containing the request details.

Returns

true if the request was handled; otherwise, false.

Applies to