create Document For Imported File
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
intent
the Intent your app received
context
Android context
Throws
if the file didn't pass validation