Skip to content

v2.2.0-alpha

Choose a tag to compare

@ioa747 ioa747 released this 18 Mar 02:28
· 75 commits to main since this release
094fbc7

Version 2.2.0-alpha

Event Object Refactoring (Navigation Interception)

This release refactors key events to use object-based arguments, enabling advanced control like navigation cancellation.

  • Breaking Change: OnNavigationStarting and OnFrameNavigationStarting now pass an Args object instead of a raw URL string.
  • New Event Argument Wrapper:
    • IWebView2NavigationStartingEventArgs:
      • Uri: [Property] The target URL.
      • Cancel: [Property] Get/Set boolean to cancel the navigation.
      • IsUserInitiated: [Property] Indicates if the navigation was user-triggered.
      • IsRedirected: [Property] Indicates if it's a redirect.
      • NavigationId: [Property] Unique identifier for the navigation.