CaptureController

Controller for capturing Composable content.

See also

for implementation details.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun capture(config: Bitmap.Config = Bitmap.Config.ARGB_8888)

Creates and send a Bitmap capture request with specified config.

Link copied to clipboard
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.