-
- All Implemented Interfaces:
public final class GiniCaptureFileImportThis class contains methods for preparing launching the Gini Capture SDK with a file received from another app.
-
-
Method Summary
Modifier and Type Method Description static IntentcreateIntentForImportedFile(@NonNull() Intent intent, @NonNull() Context context, @NonNull() Class<out ReviewActivity> reviewActivityClass, @NonNull() Class<out AnalysisActivity> analysisActivityClass)Screen API When your application receives a file from another application you can use this method to create an Intent for launching the Gini Capture SDK. static DocumentcreateDocumentForImportedFile(@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 the Gini Capture SDK's Review Fragment or Analysis Fragment. -
-
Method Detail
-
createIntentForImportedFile
@Deprecated()@NonNull() static Intent createIntentForImportedFile(@NonNull() Intent intent, @NonNull() Context context, @NonNull() Class<out ReviewActivity> reviewActivityClass, @NonNull() Class<out AnalysisActivity> analysisActivityClass)
Screen API
When your application receives a file from another application you can use this method to create an Intent for launching the Gini Capture SDK.
Start the Intent with startActivityForResult to receive the GiniCaptureError in case there was an error.
- Parameters:
intent- the Intent your app receivedcontext- Android contextreviewActivityClass- the class of your application's ReviewActivity subclassanalysisActivityClass- the class of your application's AnalysisActivity subclass
-
createDocumentForImportedFile
@Deprecated()@NonNull() 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 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 Fragments ().
- Parameters:
intent- the Intent your app receivedcontext- Android context
-
-
-
-