go-webview2 icon indicating copy to clipboard operation
go-webview2 copied to clipboard

Capture Navigation Events

Open bhaswanth88 opened this issue 2 years ago • 2 comments

Hi, I am trying to find a way to capture navigation events used in windows webview2 (link). I couldnt find any in the WebView interface, but found some events are implemented in edge package inside Chromium struct

	envCompleted          *iCoreWebView2CreateCoreWebView2EnvironmentCompletedHandler
	controllerCompleted   *iCoreWebView2CreateCoreWebView2ControllerCompletedHandler
	webMessageReceived    *iCoreWebView2WebMessageReceivedEventHandler
	permissionRequested   *iCoreWebView2PermissionRequestedEventHandler
	webResourceRequested  *iCoreWebView2WebResourceRequestedEventHandler
	acceleratorKeyPressed *ICoreWebView2AcceleratorKeyPressedEventHandler
	navigationCompleted   *ICoreWebView2NavigationCompletedEventHandler

Is there any way to add a handler for SourceChanged event of webview2 ?

bhaswanth88 avatar Aug 02 '22 05:08 bhaswanth88

There currently is not. Some of this will be added in #53 it seems.

jchv avatar Sep 25 '22 02:09 jchv

chromium.EnvironmentCompleted How to use?

kityun avatar Aug 07 '23 06:08 kityun