Oooh, I wish we had this API as well on Android. &...
# compose
s
Oooh, I wish we had this API as well on Android.
New public API: androidx.compose.ui.renderComposeScene - renders UI into an image
1839133: Desktop. WithComposeScene, deprecate TestComposeWindow | https://android-review.googlesource.com/c/platform/frameworks/support/+/1839133
9
c
I agree, this could be very useful! We have this use case to create bitmaps for Google Map markers
7
s
I think that once JetBrains has finished migrating its Compose for Desktop to the multiplatform version of the Skia library and done with this task, it will be possible to build Compose entirely driven by the external Skia renderer how Flutter does it. Of course, we will probably lose all compatibility with the current Android View system, but that will be an exciting thing anyway, I believe.
K 2
a
we have no plans to do that
🔥 2
👎 1
👍 5
c
Do you plan to use the same artifact for Compose Android and Desktop? Currently Compose Desktop has a fork in a different namespace and version, but inside the code has the
androidx
package name. This way it is not easy to have an Android app and compose desktop app in a same Gradle project.
a
yeah there are a few things we're working on in collaboration with JetBrains to address those issues but afaik nothing to promote just yet
👍 2
m
So does this mean that the Compose Canvas and its drawScope will be available on iOS too and you can use it in the same way as you can do on Android and Desktop?
u
@Csaba Kozák what do you guys do now for your custom GoogleMap Marker bitmaps? I've added my thoughts here: https://issuetracker.google.com/issues/198126189#comment4
c
We create Bitmaps from our composables to use the Bitmaps with the Markers. We use the same APIs as this library, but we also added some caching of the bitmaps as we have lots of markers on the map.
❤️ 1