Skip to content
Discussion options

You must be logged in to vote

Yeah, you can disable gallery selection - there's a galleryEnabled flag in the config. Set it to false and you're done.

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 directLaunchCamera flag works on both platforms now - not just iOS. Ismoy added that for Android in a recent release.

ImagePickerKMPConfig(
 directLaunchCamera = true
)

The difference: galleryEnabled = false still shows the picker UI but with no gallery option. directLaunchCamera = true bypasses the picker entirely and ope…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ismoy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ismoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants