createIntentForImportedFile

static Intent createIntentForImportedFile(@NonNull() Intent intent, @NonNull() Context context, @Nullable() Class<? extends ReviewActivity> reviewActivityClass, @Nullable() Class<? extends 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 Vision Library.

Start the Intent with startActivityForResult to receive the extractions or a GiniVisionError in case there was an error.

Return

an Intent for launching the Gini Vision Library

Parameters

intent

the Intent your app received

context

Android context

reviewActivityClass

(optional) the class of your application's subclass

analysisActivityClass

(optional) the class of your application's subclass

Throws

if the Intent's data is not valid or the mime type is not supported