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

[WebView] Extend the WebView composable to allow for customized (subclasses of) WebViews #1352

Merged
merged 2 commits into from Sep 25, 2022

Conversation

morrisseyai
Copy link
Contributor

This PR introduces a factory parameter to the WebView composable, unlocking two use cases:

  1. Allows using a subclass of WebView (a very common use case in my experience)
  2. Allows further control over the instantiation of the underlying WebView

I've also added a test, updated the documentation, and created a second commit which fixes a 404 linking to the documentation for WebView.

Let me know if there's anything I've missed and I can make the required changes!

By allowing callers to provide their own WebView factory we add the ability to use subclasses of WebView and give more control over instantiation.
Copy link
Collaborator

@bentrengrove bentrengrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for the contribution!

@bentrengrove bentrengrove merged commit 3b711d0 into google:main Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants