Matisse icon indicating copy to clipboard operation
Matisse copied to clipboard

Hide unsupported media types

Open didi789 opened this issue 4 years ago • 3 comments

Hello, There is any way to hide all unsupported media types? If my mimeSet, contains only Gif, I want the user to see only the gif files instead of all the photos,

Thanks in advance

didi789 avatar Jul 23 '20 05:07 didi789

hi, there is a way to do what you ask, I believe:

      mimeTypes.addAll(MimeType.ofImage())
     mimeTypes.addAll(MimeType.ofVideo())

Then you can go:

Matisse.from(this)
                .choose(mimeTypes, false)

Hope this helps you. By the way, allowed ones are an enum like so:

EnumSet.of(JPEG, PNG, GIF, BMP, WEBP)

poppito avatar Aug 18 '20 07:08 poppito

It's still shows me all files (but disabled..)

didi789 avatar Aug 18 '20 08:08 didi789

...

.showSingleMediaType(true)

.forResult(PICK_IMAGE_REQUEST);

RyugaBahira avatar Apr 21 '22 08:04 RyugaBahira