Package net.gini.android.vision.onboarding

Contains the Activity and Fragments used for the Onboarding Screen.

Screen API

The net.gini.android.vision.onboarding.OnboardingActivity is launched directly by the net.gini.android.vision.camera.CameraActivity. It can be configured by overriding Gini Vision Library app resources and/or by supplying the net.gini.android.vision.camera.CameraActivity with an java.util.ArrayList of net.gini.android.vision.onboarding.OnboardingPage objects in the net.gini.android.vision.camera.CameraActivity.EXTRA_IN_ONBOARDING_PAGES extra.

Component API

To use the Component API you have to include the net.gini.android.vision.onboarding.OnboardingFragmentStandard or the net.gini.android.vision.onboarding.OnboardingFragmentCompat 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.onboarding.OnboardingFragmentListener interface.

The Onboarding Screen was designed as a semi-transparent overlay for the camera preview. Your Activity should be configured to be transparent and the Camera Fragment should not stop the camera when the onboarding is shown.

Types

ConditionalPages
Link copied to clipboard
public enum ConditionalPages
Internal use only.
DefaultPagesPhone
Link copied to clipboard
public enum DefaultPagesPhone
Internal use only.
DefaultPagesTablet
Link copied to clipboard
public enum DefaultPagesTablet
Internal use only.
OnboardingActivity
Link copied to clipboard
public class OnboardingActivity extends AppCompatActivity implements OnboardingFragmentListener
Screen APIWhen you use the Screen API, the OnboardingActivity displays important advice for correctly photographing a document.
OnboardingFragmentCompat
Link copied to clipboard
public class OnboardingFragmentCompat extends Fragment implements OnboardingFragmentImplCallback, OnboardingFragmentInterface
Component API When you use the Component API with the Android Support Library, the OnboardingFragmentCompat displays important advice for correctly photographing a document.
OnboardingFragmentImplCallback
Link copied to clipboard
public interface OnboardingFragmentImplCallback implements FragmentImplCallback
Internal use only.
OnboardingFragmentInterface
Link copied to clipboard
public interface OnboardingFragmentInterface
Methods which both Onboarding Fragments must implement.
OnboardingFragmentListener
Link copied to clipboard
public interface OnboardingFragmentListener
Interface used by OnboardingFragmentStandard and OnboardingFragmentCompat to dispatch events to the hosting Activity.
OnboardingFragmentStandard
Link copied to clipboard
public class OnboardingFragmentStandard extends Fragment implements OnboardingFragmentImplCallback, OnboardingFragmentInterface
Component API When you use the Component API without the Android Support Library, the OnboardingFragmentStandard displays important advice for correctly photographing a document.
OnboardingPage
Link copied to clipboard
public class OnboardingPage implements Parcelable
The OnboardingPage is used by the Onboarding Fragment to display an image and a short text.
OnboardingPageFragmentCompat
Link copied to clipboard
public class OnboardingPageFragmentCompat extends Fragment implements FragmentImplCallback
Internal use only.
OnboardingPageFragmentStandard
Link copied to clipboard
public class OnboardingPageFragmentStandard extends Fragment implements FragmentImplCallback
Internal use only.