Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture Navigation Events #50

Open
bhaswanth88 opened this issue Aug 2, 2022 · 2 comments · Fixed by #57 · May be fixed by #53
Open

Capture Navigation Events #50

bhaswanth88 opened this issue Aug 2, 2022 · 2 comments · Fixed by #57 · May be fixed by #53
Labels
enhancement New feature or request

Comments

@bhaswanth88
Copy link

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 ?

@jchv
Copy link
Owner

jchv commented Sep 25, 2022

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

@jchv jchv added the enhancement New feature or request label Sep 25, 2022
@kityun
Copy link

kityun commented Aug 7, 2023

chromium.EnvironmentCompleted How to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants