Yes, I know I can use, I was just wondering when is Compose going to provide support for WebView
c
Colton Idle
06/01/2023, 4:29 PM
Since accompanist does it, I doubt it's very high on their list.
c
Casey Brooks
06/01/2023, 4:41 PM
^ The Accompanist libraries are “official” in that they are developed by the folks at Google. They’re usually put there for unstable APIs that they’re still working on which they intend to eventually move into the core Compose library (insets, FlowLayout, and ViewPager, for example). The APIs that get promoted to Compose core are typically supported on all Compose targets.
It’s also where they keep artifacts that are more “extras”, especially ones tightly coupled to the Android system (such as theme adapters and navigation). WebView falls into this category, so I wouldn’t expect it to get promoted to the core Compose libraries.
Not to mention, it would be a huge challenge to make it work on all targets, since some like Desktop, don’t have any good option for WebViews yet, let alone something that could be bridged to a common API.
j
Joel Denke
06/01/2023, 4:55 PM
As the current androidx web packages for regular View, I doubt that todays Webviews will ever be part of Foundation as Google usually done by porting from Accompanist into compose foundation. However pure Chrome Webview with Wasm and interop with pure compose rendering web pages I think they elaborate with. And in theory compatible with compose with Kotlin Wasm.
No idea of actual plans.
Would be smooth similar for supporting PDF, Markdown and such in similar way cross platform.
d
Danish Ansari
06/01/2023, 4:57 PM
Thanks @Casey Brooks AND @Joel Denke for detail explanation