captureAsync

fun captureAsync(config: Bitmap.Config = Bitmap.Config.ARGB_8888): Deferred<ImageBitmap>

Creates and requests for a Bitmap capture with specified config and returns an ImageBitmap asynchronously.

This method is safe to be called from the "main" thread directly.

Make sure to call this method as a part of callback function and not as a part of the Composable function itself.

Parameters

config

Bitmap config of the desired bitmap. Defaults to Bitmap.Config.ARGB_8888