Builder

Builder for GiniVision . To get an instance call newInstance .

public class Builder

Functions

areBackButtonsEnabled
Link copied to clipboard
boolean areBackButtonsEnabled()
build
Link copied to clipboard

Create a new GiniVision instance.

void build()
getDocumentImportEnabledFileTypes
Link copied to clipboard
getEventTracker
Link copied to clipboard
EventTracker getEventTracker()
getGiniVisionNetworkApi
Link copied to clipboard
GiniVisionNetworkApi getGiniVisionNetworkApi()
getGiniVisionNetworkService
Link copied to clipboard
getOnboardingPages
Link copied to clipboard
ArrayList<OnboardingPagegetOnboardingPages()
isFileImportEnabled
Link copied to clipboard
boolean isFileImportEnabled()
isFlashButtonEnabled
Link copied to clipboard
boolean isFlashButtonEnabled()
isFlashOnByDefault
Link copied to clipboard
boolean isFlashOnByDefault()
isMultiPageEnabled
Link copied to clipboard
boolean isMultiPageEnabled()
isQRCodeScanningEnabled
Link copied to clipboard
boolean isQRCodeScanningEnabled()
isSupportedFormatsHelpScreenEnabled
Link copied to clipboard
boolean isSupportedFormatsHelpScreenEnabled()
setBackButtonsEnabled
Link copied to clipboard

Screen API only

Enable/disable back buttons in all Activities except ReviewActivity and AnalysisActivity , which always show back buttons.

Enabled by default.

GiniVision.Builder setBackButtonsEnabled(boolean enabled)
setCustomOnboardingPages
Link copied to clipboard

Set custom pages to be shown in the Onboarding Screen.

setDocumentImportEnabledFileTypes
Link copied to clipboard

Enable and configure the document import feature or disable it by passing in .

Disabled by default.

setEventTracker
Link copied to clipboard

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

Enable/disable the file import feature.

Disabled by default.

GiniVision.Builder setFileImportEnabled(boolean fileImportEnabled)
setFlashButtonEnabled
Link copied to clipboard

Enable/disable the flash button in the Camera Screen.

Disabled by default.

GiniVision.Builder setFlashButtonEnabled(boolean enabled)
setFlashOnByDefault
Link copied to clipboard

Set whether the camera flash is on or off by default.

If not changed, then flash is on by default.

GiniVision.Builder setFlashOnByDefault(boolean flashOn)
setGiniVisionNetworkApi
Link copied to clipboard

Set the GiniVisionNetworkApi instance which clients can use to request network calls (e.g. for sending feedback).

setGiniVisionNetworkService
Link copied to clipboard

Set the GiniVisionNetworkService instance which will be used by the library to request document related network calls (e.g. upload, analysis or deletion).

setMultiPageEnabled
Link copied to clipboard

Enable/disable the multi-page feature.

Disabled by default.

GiniVision.Builder setMultiPageEnabled(boolean multiPageEnabled)
setQRCodeScanningEnabled
Link copied to clipboard

Enable/disable the QRCode scanning feature.

Disabled by default.

setShouldShowOnboarding
Link copied to clipboard

Screen API only

Set to {@code true} to show the Onboarding Screen every time the CameraActivity starts.

Default value is {@code false} .

setShouldShowOnboardingAtFirstRun
Link copied to clipboard

Screen API only

Set to {@code 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.

Default value is {@code true} .

setSupportedFormatsHelpScreenEnabled
Link copied to clipboard

Enable/disable the Supported Formats help screen.

Enabled by default.

GiniVision.Builder setSupportedFormatsHelpScreenEnabled(boolean enabled)
shouldShowOnboarding
Link copied to clipboard
boolean shouldShowOnboarding()
shouldShowOnboardingAtFirstRun
Link copied to clipboard
boolean shouldShowOnboardingAtFirstRun()