https://kotlinlang.org logo
#android
Title
# android
r

Rihards

02/17/2023, 9:32 AM
Hi! I need to implement image picker in my app. There are some restrictions regarding the image count, image file size and format (three formats allowed). While image count seems easy to implement, other two are not. 1. Is there any way I can show only images in gallery that fit to my file size restrictions? Similar as it is with MIME types? 2. Is there any way I can set MIME types for
ActivityResultContracts.PickVisualMedia.ImageOnly
? I see that I can set MIME type for
ActivityResultContracts.PickVisualMedia.SingleMimeType
, but I want to allow three specific MIME types.
😶 1