Capture Controller
Controller for capturing Composable content.
See also
dev. wonddak. capturable. Capturable
for implementation details.
Functions
Link copied to clipboard
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