Entry point of the Regula Document Reader.

Properties

customization: Customization

Params that relate to the camera view controller customization and etc.

env: string

Environment type.

functionality: Functionality

Params that influence the scanning process, camera view controller customization and etc.

locale: string

Custom language locale code of DocumentReaderSDK. If empty or doesn't exist - app language is used. Format "en-US" or "en".

localizationDictionary: Record<string, string>

A localization dictionary to override default localization logic. Allows to replace any string of DocumentReader SDK with an arbitrary string.

To see all the localization keys, look up the RegulaSDK.strings file at ios/Pods/DocumentReader/DocumentReader.xcframework/ios-arm64/DocumentReader.framework/en.lproj/RegulaSDK.strings.

Unmodifiable property. Use setter instead of editing.

processParams: ProcessParams

Params that influence the scanning process.

rfidScenario: RFIDScenario

Params that influence the RFID chip processing.

rfidSessionStatus: string

Allows you to get a status of the RFID chip reading process. IOS only.

tag: string

Current Session identifier.

tenant: string

Customer name.

Accessors

  • get availableScenarios(): DocReaderScenario[]
  • A list of scenarios that can be used for documents recognition based on your license and Core framework capabilities.

    Returns DocReaderScenario[]

  • get license(): License
  • Information about your license.

    Returns License

  • set onCustomButtonTapped(completion): void
  • Set click listener for buttons from the UI customization layer.

    Parameters

    Returns void

  • set videoEncoderCompletion(completion): void
  • Allows user to receive a video file of current session.

    Parameters

    Returns void

Methods

  • Used to pass certificates to Document Reader that will be used during the RFID chip processing.

    Parameters

    Returns void

  • Cancels any ongoing database update or preparation.

    Returns Promise<boolean>

  • Allows you to to check database update.

    Requires android.permission.INTERNET android permission.

    Parameters

    • databaseID: string

      identifier of the database.

    Returns Promise<DocumentsDatabase>

    Returns DocumentsDatabase or null.

  • It's used to remove certificates from your app that are used during the RFID chip processing.

    Returns void

  • Used to connect to the ble device.

    Requires btdevice plugin.

    Parameters

    • deviceName: string

      name of the device to connect to.

    Returns Promise<boolean>

    Returns boolean indicating success of connection.

  • Used to deinitialize Document Reader and free up RAM as a consequence of this.

    Returns void

  • It's used to end transaction during backend processing.

    Returns void

  • Allows you to initialize Document Reader.

    Parameters

    • config: InitConfig

      configuration file for DocumentReader initialization.

    Returns Promise<[boolean, DocReaderException]>

    Returns boolean indicating success of initialization and a nullable DocReaderException.

  • Allows you to check if you can use external Regula Bluetooth devices based on your license, available scenarios and Core framework capabilities.

    Returns Promise<boolean>

    true if available.

  • Allows you to check if you can use external Regula Bluetooth devices for RFID based on your license and Core framework capabilities.

    Returns Promise<boolean>

    true if external Regula Bluetooth for RFID is supported.

  • Allows you to check if Document Reader is ready for use.

    Returns Promise<boolean>

  • Allows you to check if native RFID chip reading can be performed based on your license and Core framework capabilities.

    Returns Promise<boolean>

    true if native RFID chip reading is supported.

  • Allows you to download a database from the Regula server. If it exists in your app and compatible with the SDK, it won't be downloaded.

    Requires android.permission.INTERNET android permission.

    Parameters

    Returns Promise<[boolean, DocReaderException]>

    Returns boolean indicating success of preparing database and a nullable DocReaderException.

  • Used for proccessing predefined images.

    Parameters

    Returns void

  • Removes the current document database.

    Returns Promise<boolean>

  • Use this method to reset all parameters to their default values.

    Returns void

  • Used for the RFID chip processing.

    Requires android.permission.NFC android permission.

    Parameters

    Returns void

  • Allows you to download a database from the Regula server. Each new update of the database will be downloaded.

    Requires android.permission.INTERNET android permission.

    Parameters

    Returns Promise<[boolean, DocReaderException]>

    Returns boolean indicating success of running auto update and a nullable DocReaderException.

  • Used for multiple frames processing which are captured from the camera(old UI).

    Parameters

    Returns void

  • Sets the given TCCParams to the RFID session. The parameters are required to be set before starting RFID session.

    Parameters

    Returns Promise<[boolean, DocReaderException]>

    Returns boolean indicating success of setting TCC parameters and a nullable DocReaderException.

  • Used to start the processing of the next page of the document once the current one is processed.

    Returns void

  • Used to start a scanning process.

    Returns void

  • Used for multiple frames processing which are captured from the camera(new UI).

    Parameters

    Returns void

  • Allows you to get a status of Document Reader.

    Returns Promise<string>

  • Stops the RFID reader if it's active.

    Returns void

  • Stops the document scanner if it's active.

    Returns void