Builder

public class Builder

Builder for GiniVision. To get an instance call newInstance.

Functions

build
Link copied to clipboard
void build()
Create a new GiniVision instance.
setBackButtonsEnabled
Link copied to clipboard
GiniVision.Builder setBackButtonsEnabled(boolean enabled)
Screen API only Enable/disable back buttons in all Activities except ReviewActivity and AnalysisActivity, which always show back buttons.
setCustomOnboardingPages
Link copied to clipboard
GiniVision.Builder setCustomOnboardingPages(@NonNull() ArrayList<OnboardingPage> onboardingPages)
Set custom pages to be shown in the Onboarding Screen.
setDocumentImportEnabledFileTypes
Link copied to clipboard
GiniVision.Builder setDocumentImportEnabledFileTypes(@NonNull() DocumentImportEnabledFileTypes documentImportEnabledFileTypes)
Enable and configure the document import feature or disable it by passing in NONE.
setEventTracker
Link copied to clipboard
GiniVision.Builder setEventTracker(@NonNull() EventTracker eventTracker)
Set the EventTracker instance which will be called from the different screens to inform you about the various events which can occur during the usage of the Gini Vision Library.
setFileImportEnabled
Link copied to clipboard
GiniVision.Builder setFileImportEnabled(boolean fileImportEnabled)
Enable/disable the file import feature.
setFlashButtonEnabled
Link copied to clipboard
GiniVision.Builder setFlashButtonEnabled(boolean enabled)
Enable/disable the flash button in the Camera Screen.
setFlashOnByDefault
Link copied to clipboard
GiniVision.Builder setFlashOnByDefault(boolean flashOn)
Set whether the camera flash is on or off by default.
setGiniVisionNetworkApi
Link copied to clipboard
GiniVision.Builder setGiniVisionNetworkApi(@NonNull() GiniVisionNetworkApi giniVisionNetworkApi)
Set the GiniVisionNetworkApi instance which clients can use to request network calls (e.g.
setGiniVisionNetworkService
Link copied to clipboard
GiniVision.Builder setGiniVisionNetworkService(@NonNull() GiniVisionNetworkService giniVisionNetworkService)
Set the GiniVisionNetworkService instance which will be used by the library to request document related network calls (e.g.
setMultiPageEnabled
Link copied to clipboard
GiniVision.Builder setMultiPageEnabled(boolean multiPageEnabled)
Enable/disable the multi-page feature.
setQRCodeScanningEnabled
Link copied to clipboard
GiniVision.Builder setQRCodeScanningEnabled(boolean qrCodeScanningEnabled)
Enable/disable the QRCode scanning feature.
setShouldShowOnboarding
Link copied to clipboard
GiniVision.Builder setShouldShowOnboarding(boolean shouldShowOnboarding)
Screen API only Set to true to show the Onboarding Screen every time the CameraActivity starts.
setShouldShowOnboardingAtFirstRun
Link copied to clipboard
GiniVision.Builder setShouldShowOnboardingAtFirstRun(boolean shouldShowOnboardingAtFirstRun)
Screen API only Set to false to disable automatically showing the OnboardingActivity the first time the CameraActivity is launched - we highly recommend letting the Gini Vision Library show the OnboardingActivity at first run.
setSupportedFormatsHelpScreenEnabled
Link copied to clipboard
GiniVision.Builder setSupportedFormatsHelpScreenEnabled(boolean enabled)
Enable/disable the Supported Formats help screen.