-
public final class CropImageIntentChooser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCropImageIntentChooser.ResultCallbackpublic classCropImageIntentChooser.Companion
-
Constructor Summary
Constructors Constructor Description CropImageIntentChooser(ComponentActivity activity, CropImageIntentChooser.ResultCallback callback)
-
Method Summary
Modifier and Type Method Description final UnitshowChooserIntent(Boolean includeCamera, Boolean includeGallery, Uri cameraImgUri)Create a chooser intent to select the source to get image from. final CropImageIntentChoosersetupPriorityAppsList(List<String> appsList)Set up a list of apps that you require to show first in the intent chooser Apps will show in the order it is passed final CropImageIntentChoosersetIntentChooserTitle(String title)Set the title for the intent chooser -
-
Constructor Detail
-
CropImageIntentChooser
CropImageIntentChooser(ComponentActivity activity, CropImageIntentChooser.ResultCallback callback)
-
-
Method Detail
-
showChooserIntent
final Unit showChooserIntent(Boolean includeCamera, Boolean includeGallery, Uri cameraImgUri)
Create a chooser intent to select the source to get image from.<br></br> The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTENT).<br></br> All possible sources are added to the intent chooser.
- Parameters:
includeCamera- if to include camera intentsincludeGallery- if to include Gallery app intentscameraImgUri- required if includeCamera is set to true
-
setupPriorityAppsList
final CropImageIntentChooser setupPriorityAppsList(List<String> appsList)
Set up a list of apps that you require to show first in the intent chooser Apps will show in the order it is passed
- Parameters:
appsList-pass a list of package names of apps of your choice
-
setIntentChooserTitle
final CropImageIntentChooser setIntentChooserTitle(String title)
Set the title for the intent chooser
- Parameters:
title-the title for the intent chooser
-
-
-
-