Package net.gini.android.vision.noresults

Contains the Activity and Fragments used for the No Results Screen. The No Results Screen includes hints on how to take a picture in an optimal condition. This screen should be shown when the received results from the Gini API don't include the required extractions.

Screen API

The net.gini.android.vision.noresults.NoResultsActivity is launched directly by the net.gini.android.vision.analysis.AnalysisActivity or the net.gini.android.vision.review.ReviewActivity, depending on where analysis results were received.

Call net.gini.android.vision.analysis.AnalysisFragmentInterface#onNoExtractionsFound() or net.gini.android.vision.review.ReviewFragmentInterface#onNoExtractionsFound() after you received the results from the Gini API and it didn't include the required extractions.

Component API

To use the Component API you have to include the net.gini.android.vision.noresults.NoResultsFragmentStandard or the net.gini.android.vision.noresults.NoResultsFragmentCompat 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.noresults.NoResultsFragmentListener interface.

Types

NoResultsActivity
Link copied to clipboard
public class NoResultsActivity extends AppCompatActivity implements NoResultsFragmentListener
Screen API When you use the Screen API, the NoResultsFragmentCompat displays hints that show how to best take a picture of a document.
NoResultsFragmentCompat
Link copied to clipboard
public class NoResultsFragmentCompat extends Fragment implements FragmentImplCallback
Component API When you use the Component API with the Android Support Library, the NoResultsFragmentCompat displays hints that show how to best take a picture of a document.
NoResultsFragmentListener
Link copied to clipboard
public interface NoResultsFragmentListener
Interface used by NoResultsFragmentStandard and NoResultsFragmentCompat to dispatch events to the hosting Activity.
NoResultsFragmentStandard
Link copied to clipboard
public class NoResultsFragmentStandard extends Fragment implements FragmentImplCallback
Component API When you use the Component API without the Android Support Library, the NoResultsFragmentStandard displays hints that show how to best take a picture of a document.