createDocumentForImportedFile

Component API

When your application receives a file from another application you can use this method to create a Document for launching the Gini Capture SDK's Review Fragment or Analysis Fragment.

If the Document can be reviewed ( isReviewable ) launch the Review Fragment ( net.gini.android.capture.review.ReviewFragmentCompat ).

If the Document cannot be reviewed you must launch the Analysis Fragment ( ).

Return

a Document for launching the Gini Capture SDK's Review Fragment or Analysis Fragment

Parameters

context

Android context

intent

the Intent your app received

static Document createDocumentForImportedFile(Intent intent, Context context)