createDocumentForImportedFile

Component API

When your application receives a file from another application you can use this method to create a Document for launching one of the Gini Vision Library's Review Fragments or Analysis Fragments.

If the Document can be reviewed ( isReviewable ) launch one of the Review Fragments ( net.gini.android.vision.review.ReviewFragmentCompat or ).

If the Document cannot be reviewed you must launch one of the Analysis Fragments ( or ).

Return

a Document for launching one of the Gini Vision Library's Review Fragments or Analysis Fragments

Parameters

context

Android context

intent

the Intent your app received

static Document createDocumentForImportedFile(Intent intent, Context context)