Package-level declarations

Types

ImageType
Link copied to clipboard
sealed class ImageType

Image Type of Android

sealed class ImageType

share Type of iOS

Functions

Link copied to clipboard

Adds a capture-ability on the Composable which can draw Bitmap from the Composable component.

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

Capture and save Image

suspend fun <Error class: unknown class>.captureAsyncAndSave(fileName: String = "capture_shared", type: ImageType = ImageType.PNG(100)): <Error class: unknown class>

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

suspend fun <Error class: unknown class>.captureAsyncAndShare(fileName: String = "capture_shared", metaTitle: String = "Share Captured Image", type: ImageType = ImageType.PNG(100), addOptionUIActivityViewController: (UIActivityViewController) -> Unit = {}, topViewController: UIViewController? = UIApplication.sharedApplication.keyWindow?.rootViewController): <Error class: unknown class>

Capture and share Image

Link copied to clipboard

ImageBitmap to ByteArray

fun <Error class: unknown class>.toByteArray(type: ImageType): ByteArray

ImageBitmap to ByteArray