createDocumentForImportedFile

static Document createDocumentForImportedFile(@NonNull() Intent intent, @NonNull() Context context)

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

intent

the Intent your app received

context

Android context

Throws