Brais Gabin
01/31/2025, 9:24 AMval bitmap = screenshot { content() }
. screenshot
is not a @Composable
function. It is just a regular function that returns a Flow<Bitmap>
or just a suspend function that returns a single Bitmap
. What I'm looking for is something similar to what paparazzi does but inside android, pass a composable to a function and it generates an screenshot of it. Is this possible? Is it done already? How hard could it be to develop?apolyakov
01/31/2025, 9:54 AMSergey Y.
01/31/2025, 10:18 AMBrais Gabin
01/31/2025, 10:25 AMVirtualDisplay
, that sounds promising! I will check that thread 🙂Brais Gabin
01/31/2025, 10:26 AMBrais Gabin
01/31/2025, 10:31 AMAlex Styl
01/31/2025, 6:18 PMImageComposeScene
. I think it's desktop only but it sounds like what you wantSkaldebane
02/04/2025, 11:56 PMImageComposeScene
is on all targets except Android (part of skikoMain
).
Wondering what would it take to get implemented on Android, it's a super convenient headless API.