ImagePicker

A helper class for launching gallery image picker or a camera for taking a picture.

Constructors

Link copied to clipboard
constructor(@NonNull fragmentManager: FragmentManager, @NonNull fragmentTag: String)
Creates an image picker object, start image picking or capturing by using startImageCapture or startImageGallery

Types

Link copied to clipboard
Interface for listening for image picker results.

Functions

Link copied to clipboard
open fun deleteTemporaryFile(@NonNull context: Context, @Nullable imageUri: Uri): Boolean
Deletes temporary file previously created by capturing image through camera.
Link copied to clipboard
Sets on image picked listener.
Link copied to clipboard
Starts camera application for capturing photos.
Link copied to clipboard
Starts image gallery for picking images.
Link copied to clipboard
open fun wasStarted(): Boolean
Returns true if an image picker request (for gallery or camera) was started and is running or false if none has been started.