create Document For Imported File
Component API
When your application receives a file from another application you can use this method tocreate a Document for launching the Gini Capture SDK's Review Fragment or AnalysisFragment.
If the Document can be reviewed (isReviewable) launch theReview 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 orAnalysis Fragment
Parameters
intent
the Intent your app received
context
Android context
Throws
if the file didn't pass validation