Package-level declarations

Picking and capturing images from gallery and camera.

Types

Link copied to clipboard
Base fragment for image picker implementations.
Link copied to clipboard
Fragment used for firing up the camera for capturing an image.
Link copied to clipboard
Fragment used for picking up the image from gallery / filesystem.
Link copied to clipboard
A helper class for launching gallery image picker or a camera for taking a picture.
Link copied to clipboard

Functions

Link copied to clipboard
fun decodeBitmap(context: Context, imageUri: Uri): Bitmap

Read bitmap from an imageUri. Accepts URI schemes accepted by ContentResolver.openInputStream:

Link copied to clipboard
suspend fun decodeBitmapAsync(context: Context, imageUri: Uri): Bitmap

Decode bitmap from an imageUri. Accepts URI schemes accepted by ContentResolver.openInputStream:

Link copied to clipboard
fun fromDrawable(context: Context, drawableResource: Int): Bitmap

Generate a bitmap from a drawableResource XML drawable.