The built-in list is what the viewer itself can turn into a document, and it is
always offered: pdf, wwf, png, tiff, tif, jpeg, jpg, bmp, gif,
txt. This config only adds to it — formats your own code opens, so that the
picker and the cloud-drive listings stop greying them out and let the user pick
one.
Adding a format does not teach the viewer to read it. Intercept the open with
onOpenFile (or your provider's getFileAsFile) and convert the file to
something openable. A declared format that reaches the viewer's own processing
unconverted fails the way any unreadable file does — "File format is not
supported", on the standard open-failure notification.
Which file formats the viewer's open UI offers.
The built-in list is what the viewer itself can turn into a document, and it is always offered:
pdf,wwf,png,tiff,tif,jpeg,jpg,bmp,gif,txt. This config only adds to it — formats your own code opens, so that the picker and the cloud-drive listings stop greying them out and let the user pick one.Adding a format does not teach the viewer to read it. Intercept the open with
onOpenFile(or your provider'sgetFileAsFile) and convert the file to something openable. A declared format that reaches the viewer's own processing unconverted fails the way any unreadable file does — "File format is not supported", on the standard open-failure notification.