GiniCapture

public class GiniCapture

Single entry point for the Gini Capture SDK for configuration and interaction.

This singleton class is preferred over the previous methods of configuration and interaction. It is only mandatory for new features. You can continue using features from previous releases without any modification.

To create and configure a singleton instance use the newInstance method and the returned Builder. If an instance is already available you need to call before creating a new instance. Failing to do so will throw an exception.

After you are done using the Gini Capture SDK use the cleanup method. This will free up resources used by the library.

Types

Builder
Link copied to clipboard
public class Builder
Builder for GiniCapture.
Internal
Link copied to clipboard
public class Internal
Internal use only.

Functions

areBackButtonsEnabled
Link copied to clipboard
boolean areBackButtonsEnabled()
Screen API only Find out whether back buttons in all Activities have been enabled.
cleanup
Link copied to clipboard
static synchronized void cleanup(@NonNull() Context context)
Destroys the GiniCapture instance and frees up used resources.
createDocumentForImportedFile
Link copied to clipboard
static Document createDocumentForImportedFile(@NonNull() Intent intent, @NonNull() Context context)
Component API When your application receives a file from another application you can use this method to create a Document for launching the Gini Capture SDK's Review Fragment or Analysis Fragment.
createDocumentForImportedFiles
Link copied to clipboard
Component API If you have enabled the multi-page feature and your application receives one or multiple files from another application you can use this method to create a Document for launching the Gini Capture SDK's MultiPageReviewFragment or the Analysis Fragment.
createIntentForImportedFile
Link copied to clipboard
static Intent createIntentForImportedFile(@NonNull() Intent intent, @NonNull() Context context, @Nullable() Class<? extends ReviewActivity> reviewActivityClass, @Nullable() Class<? extends AnalysisActivity> analysisActivityClass)
Screen API When your application receives a file from another application you can use this method to create an Intent for launching the Gini Capture SDK.
createIntentForImportedFiles
Link copied to clipboard
Screen API If you have enabled the multi-page feature and your application receives one or multiple files from another application you can use this method to create an Intent for launching the Gini Capture SDK.
getCustomHelpItems
Link copied to clipboard
List<HelpItem.CustomgetCustomHelpItems()
The custom help items, if configured.
getCustomOnboardingPages
Link copied to clipboard
The custom Onboarding Screen pages, if configured.
getDocumentImportEnabledFileTypes
Link copied to clipboard
Retrieve the file types enabled for document import.
getGiniCaptureNetworkApi
Link copied to clipboard
Retrieve the GiniCaptureNetworkApi instance, if available.
getInstance
Link copied to clipboard
static synchronized GiniCapture getInstance()
Retrieve the current instance.
hasInstance
Link copied to clipboard
static synchronized boolean hasInstance()
Check whether an instance exists.
internal
Link copied to clipboard
GiniCapture.Internal internal()
Internal use only.
isFileImportEnabled
Link copied to clipboard
boolean isFileImportEnabled()
Find out whether file import has been enabled.
isFlashButtonEnabled
Link copied to clipboard
boolean isFlashButtonEnabled()
Find out whether the flash button on the Camera Screen has been enabled.
isFlashOnByDefault
Link copied to clipboard
boolean isFlashOnByDefault()
Find out whether the camera flash is on or off by default.
isMultiPageEnabled
Link copied to clipboard
boolean isMultiPageEnabled()
Find out whether scanning multi-page documents has been enabled.
isQRCodeScanningEnabled
Link copied to clipboard
boolean isQRCodeScanningEnabled()
Find out whether QRCode scanning has been enabled.
isSupportedFormatsHelpScreenEnabled
Link copied to clipboard
boolean isSupportedFormatsHelpScreenEnabled()
Find out whether the Supported Formats help screen has been enabled.
newInstance
Link copied to clipboard
static synchronized GiniCapture.Builder newInstance()
Configure and create a new instance using the returned Builder.
setShouldShowOnboarding
Link copied to clipboard
void setShouldShowOnboarding(boolean shouldShowOnboarding)
Screen API only Set to {@code true} to show the Onboarding Screen every time the CameraActivity starts.
shouldShowOnboarding
Link copied to clipboard
boolean shouldShowOnboarding()
Screen API only If set to {@code true}, the Onboarding Screen will be shown every every time the CameraActivity starts.
shouldShowOnboardingAtFirstRun
Link copied to clipboard
boolean shouldShowOnboardingAtFirstRun()
Screen API only If set to {@code false}, the Onboarding Screen won't be shown on the first run.