createDocumentForImportedFiles

final Unit createDocumentForImportedFiles(Intent intent, Context context, AsyncCallback<Document, ImportedFileValidationException> callback)

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