SDK API Reference


Provides access to the system’s UI for selecting documents from the available providers on the user’s device.

*For Standalone Applications on iOS, you need to add the usesIcloudStorage:true key value pair to your app.json file as specified here.


Display the system UI for choosing a document.


  • options (object)

    A map of options:

    • type (string) — The MIME type of the documents that are available to be picked. Is also supports wildcards like image/* to choose any image. To allow any type of document you can use */*. Defaults to */*.


If the user cancelled the document picking, returns { type: 'cancel' }.

Otherwise, returns { type: 'success', uri, name, size } where uri is a URI to the local document file, name is its name and size is its size in bytes.