create Document For Imported Files
final Unit createDocumentForImportedFiles(Intent intent, Context context, AsyncCallback<Document, ImportedFileValidationException> callback)
Content copied to clipboard
Component API
Creates an Document for a pdf or image that was shared from another app.
Importing the files is executed on a secondary thread as it can take several seconds for the process to complete. The callback methods are invoked on the main thread.
Return
a {@link CancellationToken} for cancelling the import process
Parameters
intent
the Intent your app received
context
Android context
callback
A [AsyncCallback} implementation