Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourYellow
titleto be reviewed

Approver

Nadzeya Karaban

Gini Capture SDK provides various features you can enable. All of them are configured through GiniConfiguration.shared instance. Specifically, the GiniConfiguration is used to configure the Gini Capture SDK. For Gini Capture SDK used GiniConfiguration.shared() singleton.

...

Info

If there are conflicting pairs of image and text for an interface element (e.g. navigationBarCameraTitleCloseButton) the image will always be preferred, while making sure the accessibility label is set.

...

...

Expand
titleshared

Singleton to make Makes configuration internally accessible in all classes of the Gini Capture SDK.

Code Block
public static var shared: GiniConfiguration
Expand
titleGiniCaptureImportFileTypes

Supported document types by Gini Capture SDK.

Code Block
languageswift
@objc
public enum GiniCaptureImportFileTypes : Int
  • none

    Code Block
    languageswift
    case none
  • pdf

    Code Block
    languageswift
    case pdf
  • pdf_and_images

    Code Block
    languageswift
    case pdf_and_images

General options

Expand
titlecustomDocumentValidations

Sets custom validations that can be done apart from the default ones (file size, file type…). It should throw a CustomDocumentValidationError error.

Code Block
languageswift
@objc
public var customDocumentValidations: ((GiniCaptureDocument) -> CustomDocumentValidationResult)

Button configuration options

...

Here you can find an example implementation.