capture

fun capture(config: Bitmap.Config = Bitmap.Config.ARGB_8888)

Deprecated

This method has been deprecated and will be removed in the upcoming releases. Use `captureAsync()` instead

Replace with

captureAsync(config)

Creates and send a Bitmap capture request with specified config.

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