alorma
03/11/2021, 7:03 PMTask
that returns Bitmap
... I've added an await()
method to convert it to Bitmap directly... but, how to load it onto Composable?alorma
03/11/2021, 7:04 PMCoil
with custom ImageLoader, and pass the id as data =
, but it looks overeengineringAdam Powell
03/11/2021, 7:18 PM.asImageBitmap()
extension to get a Compose ImageBitmap
object for the input Android Bitmap
, then use it in an Image
composablealorma
03/11/2021, 7:29 PMAdam Powell
03/11/2021, 7:43 PMLaunchedEffect
would be one way to do it very locally in a composable, but once the proof of concept is up and running I'm guessing you'll want to do the actual load in some other repository scope or similar and cache it more globally for the app