Package net.gini.android.vision.analysis

Contains the Activity and Fragments used for the Analysis Screen.

Screen API

Extending the AnalysisActivity in your application has been deprecated. The preferred way of adding network calls to the Gini Vision Library is by creating a net.gini.android.vision.GiniVision instance with a net.gini.android.vision.network.GiniVisionNetworkService and a net.gini.android.vision.network.GiniVisionNetworkApi implementation.

Note:net.gini.android.vision.analysis.AnalysisActivity extends androidx.appcompat.app.AppCompatActivity, therefore you have to use *an AppCompat theme for your net.gini.android.vision.analysis.AnalysisActivity subclass.

Component API

To use the Component API you have to include the net.gini.android.vision.analysis.AnalysisFragmentStandard or the net.gini.android.vision.analysis.AnalysisFragmentCompat in an Activity in your app (a dedicated Activity is recommended). To receive events from the Fragments your Activity must implement the net.gini.android.vision.analysis.AnalysisFragmentListener interface.

Types

AnalysisActivity
Link copied to clipboard
public class AnalysisActivity extends AppCompatActivity implements AnalysisFragmentListener, AnalysisFragmentInterface
Screen API When you use the Screen API, the AnalysisActivity displays the captured or imported document and an activity indicator while the document is being analyzed by the Gini API.
AnalysisFragmentCompat
Link copied to clipboard
public class AnalysisFragmentCompat extends Fragment implements FragmentImplCallback, AnalysisFragmentInterface
Component API When you use the Component API with the Android Support Library, the AnalyzeDocumentFragmentCompat displays the captured or imported document and an activity indicator while the document is being analyzed by the Gini API.
AnalysisFragmentInterface
Link copied to clipboard
public interface AnalysisFragmentInterface
Methods which both Analysis Fragments must implement.
AnalysisFragmentListener
Link copied to clipboard
public interface AnalysisFragmentListener
Interface used by AnalysisFragmentStandard and AnalysisFragmentCompat to dispatch events to the hosting Activity.
AnalysisFragmentStandard
Link copied to clipboard
public class AnalysisFragmentStandard extends Fragment implements FragmentImplCallback, AnalysisFragmentInterface
Component API When you use the Component API without the Android Support Library, the AnalyzeDocumentFragmentStandard displays the captured or imported document and an activity indicator while the document is being analyzed by the Gini API.
AnalysisInteractor
Link copied to clipboard
public class AnalysisInteractor
Internal use only.