Package-level declarations

Functions

Link copied to clipboard
actual fun captureToImage(composable: () -> Unit): ImageBitmap

fun captureToImage(activity: Activity, composable: @Composable () -> Unit): ImageBitmap

Should be called from the main thread. You can use Activity.runOnUiThread if you are on another thread. For Kotlin coroutines, use the below code if your coroutine is on another thread:

expect fun captureToImage(composable: @Composable () -> Unit): ImageBitmap
actual fun captureToImage(composable: () -> Unit): ImageBitmap
actual fun captureToImage(composable: () -> Unit): ImageBitmap
actual fun captureToImage(composable: () -> Unit): ImageBitmap
actual fun captureToImage(composable: () -> Unit): ImageBitmap