Add wry WebView configuration options & DevTools support#27
Open
zaroxh wants to merge 1 commit intokdroidFilter:mainfrom
Open
Add wry WebView configuration options & DevTools support#27zaroxh wants to merge 1 commit intokdroidFilter:mainfrom
zaroxh wants to merge 1 commit intokdroidFilter:mainfrom
Conversation
- Introduced enhanced WebView creation parameters (background color, data directory, transparency, incognito mode, dev tools, etc.).
- Enabled handling and conversion of RGBA color values in Rust and Kotlin.
- Supported new DevTools APIs to open and close the tools programmatically.
- Updated dependencies to include new Wry features ("devtools").
- Refactored WebView Kotlin bindings to align with expanded configuration capabilities.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background:
On Windows .msi install for all users (with Compose native distribution), WebView2 fails to start because it tries to create its user data folder in the write-protected program install directory.
Among the other things below, this PR adds an explicit data directory option so apps can point WebView2 to a writable location so it can run on Windows.
Additional changes:
dataDirectory: Set userdata directory of browserinitScript: Set a script that is automatically executed on page loadenableClipboard: Enable clipboard accessenableDevtools: Enable DevTools featureenableNavigationGestures: Enable trigger of back/forward navigation via gesturesincognito: Use incognito modeautoplayWithoutUserInteraction: Allow autoplay of all media without user interactionfocused: Focus the WebView when created