go-webview2
go-webview2 copied to clipboard
Capture Navigation Events
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 ?
There currently is not. Some of this will be added in #53 it seems.
chromium.EnvironmentCompleted How to use?