CaptureController

class CaptureController(graphicsLayer: GraphicsLayer)

Controller for capturing Composable content.

See also

dev.wonddak.capturable.Capturable

for implementation details.

Constructors

Link copied to clipboard
constructor(graphicsLayer: GraphicsLayer)

Functions

Link copied to clipboard
fun captureAsync(): Deferred<ImageBitmap>

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

Link copied to clipboard
suspend fun CaptureController.captureAsyncAndSave(contentResolver: ContentResolver, type: ImageType, fileName: String, addContentValues: (contentValues: ContentValues) -> Unit = {}): Result<Unit?>

Capture and save Image

Link copied to clipboard
suspend fun CaptureController.captureAsyncAndShare(context: Context, type: ImageType = ImageType.PNG(100), addOptionChooseIntent: (chooseIntent: Intent) -> Unit = {}, authority: String = context.packageName + ".fileprovider", deleteOnExit: Boolean = true): Result<Unit>

Capture and share Image