Is it possible to disable GallerySelection when taking picture ? I want force the user take a photo #89
-
|
Is it possible to disable GallerySelection when taking picture ? I want force the user take a photo. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I'm thinking of adding that option to Android in the next version, but on iOS you can enable directlaunchCamera to true; there it won't launch the modal, it will go directly to capturing the photo. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, you can disable gallery selection - there's a ImagePickerKMPConfig(
galleryEnabled = false,
cameraEnabled = true
)That hides the gallery tab entirely and drops the user straight into camera mode. If you want even more aggressive behavior (skip any intermediate UI and go straight to camera), the ImagePickerKMPConfig(
directLaunchCamera = true
)The difference: |
Beta Was this translation helpful? Give feedback.
Yeah, you can disable gallery selection - there's a
galleryEnabledflag in the config. Set it tofalseand you're done.That hides the gallery tab entirely and drops the user straight into camera mode.
If you want even more aggressive behavior (skip any intermediate UI and go straight to camera), the
directLaunchCameraflag works on both platforms now - not just iOS. Ismoy added that for Android in a recent release.The difference:
galleryEnabled = falsestill shows the picker UI but with no gallery option.directLaunchCamera = truebypasses the picker entirely and ope…