Package net.gini.android.capture.analysis

Contains the Activity and Fragments used for the Analysis Screen.

Screen API

The preferred way of adding network calls to the Gini Capture SDK is by creating a net.gini.android.capture.GiniCapture instance with a net.gini.android.capture.network.GiniCaptureNetworkService and a net.gini.android.capture.network.GiniCaptureNetworkApi implementation.

Component API

To use the Component API you have to include the net.gini.android.capture.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.capture.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 {@code 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 {@code * 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 Analysis Fragment must implement.
AnalysisFragmentListener
Link copied to clipboard
public interface AnalysisFragmentListener
Interface used by AnalysisFragmentCompat to dispatch events to the hosting Activity.
AnalysisInteractor
Link copied to clipboard
public class AnalysisInteractor
Internal use only.