iOS Question DocumentPicker - how to show only PDF files?

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.
I have a question about the DocumentPicker.

Is it possible to show only PDF files? The problem is that in the user's phone might be PDF, Word, Excel files. And the user can mistakenly select a wrong file.

If I use
B4X:
DocumentPicker.InitializeImport("picker", Array("public.content"))
it shows all file types.

I tried to use this
B4X:
DocumentPicker.InitializeImport("picker", Array("UTType.pdf"))
- I see all the files but all of them are grey out.

Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…