GiniConfiguration

@objc
public final class GiniConfiguration : NSObject

The GiniConfiguration class allows customizations to the look and feel of the Gini Capture SDK. If there are limitations regarding which API can be used, this is clearly stated for the specific attribute.

Note

Text can also be set by using the appropriate keys in a Localizable.strings file in the projects bundle. The library will prefer whatever value is set in the following order: attribute in configuration, key in strings file in project bundle, key in strings file in GiniCapture bundle.

Note

Images can only be set by providing images with the same filename in an assets file or as individual files in the projects bundle. The library will prefer whatever value is set in the following order: asset file in project bundle, asset file in GiniCapture bundle.

Attention

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.
  • Singleton to make configuration internally accessible in all classes of the Gini Capture SDK.

    Declaration

    Swift

    public static var shared: GiniConfiguration
  • Supported document types by Gini Capture SDK.

    See more

    Declaration

    Swift

    @objc
    public enum GiniCaptureImportFileTypes : Int
  • Undocumented

    Declaration

    Swift

    public lazy var primaryButtonConfiguration: ButtonConfiguration { get set }
  • Undocumented

    Declaration

    Swift

    public lazy var secondaryButtonConfiguration: ButtonConfiguration { get set }
  • Undocumented

    Declaration

    Swift

    public lazy var transparentButtonConfiguration: ButtonConfiguration { get set }
  • Undocumented

    Declaration

    Swift

    public lazy var cameraControlButtonConfiguration: ButtonConfiguration { get set }
  • Undocumented

    Declaration

    Swift

    public lazy var addPageButtonConfiguration: ButtonConfiguration { get set }
  • Can be turned on during development to unlock extra information and to save captured images to camera roll.

    Warning

    Should never be used outside of a development enviroment.

    Declaration

    Swift

    @objc
    public var debugModeOn: Bool
  • Used to handle all the logging messages in order to log them in a different way.

    Declaration

    Swift

    @objc
    public var logger: GiniLogger
  • Indicates whether the multipage feature is enabled or not. In case of true, multiple pages can be processed, showing a different review screen when capturing.

    Declaration

    Swift

    @objc
    public var multipageEnabled: Bool
  • Sets the custom navigation view controller as a root view controller for Gini Capture SDK screens.

    Declaration

    Swift

    @objc
    public var customNavigationController: UINavigationController?
  • Indicates whether the open with feature is enabled or not. In case of true, a new option with the open with tutorial wil be shown in the Help menu.

    Declaration

    Swift

    @objc
    public var openWithEnabled: Bool
  • Indicates whether the QR Code scanning feature is enabled or not.

    Declaration

    Swift

    @objc
    public var qrCodeScanningEnabled: Bool
  • Indicates whether only the QR Code scanning feature is enabled or not.

    Declaration

    Swift

    @objc
    public var onlyQRCodeScanningEnabled: Bool
  • Indicates the status bar style in the Gini Capture SDK.

    Declaration

    Swift

    @objc
    public var statusBarStyle: UIStatusBarStyle
  • Sets the back button text in the navigation bar on the analysis screen. Use this if you only want to show the title.

    Declaration

    Swift

    @objc
    public var navigationBarAnalysisTitleBackButton: String
  • Sets the back button text in the navigation bar on the help menu screen. Use this if you only want to show the title.

    Declaration

    Swift

    @objc
    public var navigationBarHelpMenuTitleBackToCameraButton: String
  • Sets the back button text in the navigation bar on the help screen. Use this if you only want to show the title.

    Declaration

    Swift

    @objc
    public var navigationBarHelpScreenTitleBackToMenuButton: String
  • Indicates whether the supported format screens should be shown. In case of false, the option won’t be shown in the Help menu.

    Declaration

    Swift

    @objc
    public var shouldShowSupportedFormatsScreen: Bool
  • Function for transfer summary. Provides transfer summary to Gini. Please provide the required transfer summary to improve the future extraction accuracy.

    Please follow the recommendations below:

    • Make sure to call this method before calling cleanup() if the user has completed TAN verification.
    • Provide values for all necessary fields, including those that were not extracted.
    • Provide the final data approved by the user (and not the initially extracted only).
    • Send the transfer summary after TAN verification and provide the extraction values the user has used.

    Declaration

    Swift

    public func sendTransferSummary(paymentRecipient: String,
                                    paymentReference: String,
                                    paymentPurpose: String,
                                    iban: String,
                                    bic: String,
                                    amountToPay: ExtractionAmount)

    Parameters

    paymentRecipient

    paymentRecipient description

    paymentReference

    paymentReference description

    iban

    iban description

    bic

    bic description

    amountToPay

    amountToPay description

  • Frees up resources used by the capture flow.

    Declaration

    Swift

    public func cleanup()