Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: photo/media picker #184

Open
ivanovpv opened this issue Jan 17, 2025 · 2 comments
Open

Feature request: photo/media picker #184

ivanovpv opened this issue Jan 17, 2025 · 2 comments

Comments

@ivanovpv
Copy link

Is it possible pick image/media from gallery? As it's usually done in standard Android/iOS application?

Like: https://developer.android.com/training/data-storage/shared/photopicker

@vinceglb
Copy link
Owner

Hi @ivanovpv!

It's already possible to do that on Android and iOS by specifying the type to PickerType.Image, PickerType.Video or PickerType.ImageAndVideo like this:

val image = FileKit.pickFile(type = PickerType.Image)

// or

val singleImagePicker = rememberFilePickerLauncher(type = PickerType.Image) { image ->
    // Do something with `image` here
}

@ivanovpv
Copy link
Author

ivanovpv commented Jan 17, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants