public final class GiniVisionFileImport
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Document |
createDocumentForImportedFile(Intent intent,
Context context)
Deprecated.
|
static Intent |
createIntentForImportedFile(Intent intent,
Context context,
java.lang.Class reviewActivityClass,
java.lang.Class analysisActivityClass)
Deprecated.
|
@Deprecated
public static Intent createIntentForImportedFile(Intent intent,
Context context,
java.lang.Class reviewActivityClass,
java.lang.Class analysisActivityClass)
throws ImportedFileValidationException
GiniVision.createIntentForImportedFile(Intent, Context, Class, Class)
instead.When your application receives a file from another application you can use this method to create an Intent for launching the Gini Vision Library.
Start the Intent with android.app.Activity#startActivityForResult(Intent, int) to
receive the GiniVisionError in case there was an error.
intent - the Intent your app receivedcontext - Android contextreviewActivityClass - the class of your application's ReviewActivity subclassanalysisActivityClass - the class of your application's AnalysisActivity
subclassImportedFileValidationException - if the file didn't pass validationjava.lang.IllegalArgumentException - if the Intent's data is not valid or the mime type is
not supported@Deprecated public static Document createDocumentForImportedFile(Intent intent, Context context) throws ImportedFileValidationException
GiniVision.createDocumentForImportedFile(Intent, Context) instead.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 (Document.isReviewable()) launch one of the
Review Fragments (ReviewFragmentCompat or ReviewFragmentStandard).
If the Document cannot be reviewed you must launch one of the Analysis Fragments (AnalysisFragmentCompat or AnalysisFragmentStandard).
intent - the Intent your app receivedcontext - Android contextImportedFileValidationException - if the file didn't pass validation