WrapperSessionParameters

Type: object

Top-level schema encompassing all request and response types exchanged between the wrapper plugin and the Anyline SDK during a scanning session.

Type: object

General information to be used for SDK initialization.

Type: string

Anyline license key to be used for SDK initialization.

Type: string Default: ""

Root folder path the SDK uses when resolving asset files. Leave empty to use the default asset location.

Type: object

Optional cache settings applied during initialization.

Type: boolean Default: false

Whether offline license caching is enabled.

Type: object

Response containing SDK initialization result. Must include either failInfo (if initialization failed) or succeedInfo (if successful). The 'initialized' boolean indicates the overall status.

Type: object

The following properties are required:

  • failInfo
Type: object

The following properties are required:

  • succeedInfo

Type: boolean Default: false

True if SDK initialization succeeded and scanning is available, false if initialization failed.

Type: object

Populated when initialized is false. Contains the error that prevented SDK initialization.

Type: string

The last error received while trying to initialize the SDK.

Type: object

Populated when initialized is true. Contains license details from the successful initialization.

Type: string

License expiry date in ISO 8601 format (YYYY-MM-DD).

Type: object

Request to start a scanning session. Requires both scanViewConfigContentString (defining what to scan) and scanResultConfig (defining how to handle results). Optional scanViewInitializationParameters for workflow correlation.

Type: string

ScanViewConfig JSON string defining the scanner configuration.

Type: object

Configuration for how scan results are returned and stored during the session.

Type: object

Deprecated. Used only by the legacy plugin. Custom callback method names for scan result and UI element click events.

Type: string

Name of the callback method to invoke when scan results are available. Method will receive a list of ExportedScanResult as parameter.

Type: string

Name of the callback method to invoke when user taps a UI feedback element during scanning. Method receives a UIFeedbackElementConfig as parameter.

Type: object

Specifies how scan result images are delivered — either saved to a file path or encoded as base64 strings.

Type: object

The following properties are required:

  • saved
Type: object

The following properties are required:

  • encoded

Type: object

Deliver images as files saved to the specified directory path.

Type: string

Directory path where scan result images are saved.

Type: object

The image filenames saved in the specified path.

Type: string

The full frame image captured at the moment of the scan result.

Type: string

The cropped cutout image corresponding to the scanned region.

Type: string

The face image extracted from the scanned document, if available.

Type: object

Deliver images as base64-encoded strings embedded in the result JSON.

Type: object

The base64-encoded image data for each image type.

Same definition as images

Type: object

Output format and quality settings for scan result images.

ExportedScanResultImageQuality

Type: integer Default: 100

Compression quality for exported images, from 1 (lowest) to 100 (highest).

Value must be greater or equal to 1 and lesser or equal to 100

ExportedScanResultImageFormat

Type: enum (of string) Default: "png"

Image format used when exporting scan result images.

Must be one of:

  • "png"
  • "jpg"

Type: enum (of string) Default: "cleanFolderOnStartScanning"

Controls when previously generated result files are removed from storage.

Must be one of:

  • "cleanFolderOnStartScanning"
  • "deleteResultFilesOnFinishScanning"
  • "keepResultFiles"

Type: object

Optional initialization parameters applied when the ScanView is created.

Type: string

An optional uuid (v4) to correlate scans and data points within a workflow.

Must match regular expression: [[:xdigit:]]{8}(?:-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}

Type: object

Data contained within the QR code that's required to unlock scanning with the Showcase Apps.

Type: string
Must match regular expression: ^\d{4}-\d{2}-\d{2}$

Type: string

Path relative to the assets folder used to resolve ScanViewConfig JSON files when a SegmentControl references them by filename.

WrapperSessionScanStartPlatformOptions

Type: object

Platform-specific options applied when starting a scan session.

Type: object

Android-specific ScanView attributes for layout and behavior customization.

Type: boolean Default: "true"

Enable or disable camera permission handling from ScanView loading process.

Type: boolean Default: "true"

Enable or disable usage of CameraX API instead of Camera1 API. Default is true.

Type: object

Request to stop the current scanning session with optional message explaining the reason for termination.

Type: string

Optional message describing the reason for stopping the scan session.

Type: object

Information about the results collected during the scanning process.

Type: object

The result configuration that was active when these results were produced.

Same definition as scanResultConfig

Type: object

Additional metadata about the source plugin that produced these results.

Type: enum (of string) Default: "viewPlugin"

The type of the source ViewPlugin that generated result(s).

Must be one of:

  • "viewPlugin"
  • "viewPluginComposite"

Type: array

List of scan results produced in this scanning event, one per detected item.

No Additional Items

Each item of this array must be:

Type: object

A single scan result exported from the Anyline SDK, containing the plugin-specific result data together with the associated scan images.

Type: object

The plugin-specific scan result produced by the Anyline SDK.

No Additional Properties

Type: object

The following properties are required:

  • pluginID
  • confidence
  • transactionId

Type: object

The following properties are required:

  • barcodeResult
Type: object

The following properties are required:

  • universalIdResult
Type: object

The following properties are required:

  • vehicleRegistrationCertificateResult
Type: object

The following properties are required:

  • mrzResult
Type: object

The following properties are required:

  • licensePlateResult
Type: object

The following properties are required:

  • japaneseLandingPermissionResult
Type: object

The following properties are required:

  • meterResult
Type: object

The following properties are required:

  • odometerResult
Type: object

The following properties are required:

  • ocrResult
Type: object

The following properties are required:

  • tinResult
Type: object

The following properties are required:

  • tireSizeResult
Type: object

The following properties are required:

  • tireMakeResult
Type: object

The following properties are required:

  • commercialTireIdResult
Type: object

The following properties are required:

  • containerResult
Type: object

The following properties are required:

  • vinResult

Type: string

The blobKey (provided optionally, depending on the Anyline license settings)

Type: string

The ID of the ScanPlugin that processed the result

Type: object

The rect information of the region that was processed within the image

No Additional Properties

Type: integer Default: -1

Provides a general confidence value between 0 and 100 if applicable. -1 if no confidence was calculated

Value must be greater or equal to -1 and lesser or equal to 100

Type: string

A unique UUIDv4 generated for each scan controller process run.

Type: object

representing time measurements for different parts of the process.

Type: integer

The total duration of the scan controller process, in milliseconds

Type: object

Describes result information of scanning barcodes

No Additional Properties

Type: array

Contains a list of one or more barcodes found on the processed image

No Additional Items

Each item of this array must be:

Type: object

Describes barcode information

No Additional Properties

Type: array of integer

Corner points of a polygon surrounding the discovered barcode, starting from the bottom-left coordinate going counter-clockwise. The coordinates are in reference to the image of the plugin result.

No Additional Items

Each item of this array must be:

Type: object

Holds all encoded barcode information according to the AAMVA standard

Type: object

Type: object

Describes result information of scanning different kinds of IDs

No Additional Properties

IdResult

Type: object

Yields field information of the ID

No Additional Properties

Type: object

Describes scanned parameters of an ID field

No Additional Properties


Describes the text values of an ID field

No Additional Properties

Type: object

The text parameters

No Additional Properties

Type: integer Default: -1

The confidence value

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

The text parameters

No Additional Properties

Type: integer Default: -1

The confidence value

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

The text parameters

No Additional Properties

Type: integer Default: -1

The confidence value

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

Describes the date value of an ID field

No Additional Properties

Type: integer

The month

Value must be greater or equal to 1 and lesser or equal to 12

Type: integer

The day

Value must be greater or equal to 1 and lesser or equal to 31

Type: integer Default: -1

The confidence value

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

Information about the visualization data of the scanned ID

No Additional Properties

Type: array of array

The found contours of the fields on the ID

No Additional Items

Each item of this array must be:

Type: array of integer

An array of integer values

Must contain a minimum of 4 items

Must contain a maximum of 4 items

No Additional Items

Each item of this array must be:

Type: array of array

The found contour points of the fields on the ID

No Additional Items

Each item of this array must be:

Type: array of array

An array of contour points

No Additional Items

Each item of this array must be:

Type: array of integer

The found bounding rect of the text fields on the ID

Must contain a minimum of 4 items

Must contain a maximum of 4 items

No Additional Items

Each item of this array must be:

Type: object

Describes result information of scanning vehicle registration certificates

No Additional Properties

VrcResult

Type: object

Yields field information of the vehicle registration certificate

No Additional Properties

Type: object

Describes scanned parameters of a vehicle registration certificate field

No Additional Properties

Type: integer Default: -1

The confidence value

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

Describes scanned parameters of a vehicle registration certificate field

Same definition as documentNumber

Type: object

Describes scanned parameters of a vehicle registration certificate field

Same definition as documentNumber

Type: object

Describes result information of scanning MRZ

No Additional Properties

Type: object

The following properties are required:

  • lastName
  • firstName
Type: object

The following properties are required:

  • surname
  • givenNames

Type: string

The Adress of the Visual Inspection Zone

Type: string

The DateOfIssue of the Visual Inspection Zone

Type: string

The DateOfIssueObject of the Visual Inspection Zone

Type: string

The Surname of the Visual Inspection Zone

Type: string

The GivenNames of the Visual Inspection Zone

Type: string

The DateOfBirth of the Visual Inspection Zone

Type: string

The DateOfBirthObject of the Visual Inspection Zone

Type: string

The DateOfExpiry of the Visual Inspection Zone

Type: string

The DateOfExpiryObject of the Visual Inspection Zone

Type: object

The confidence values of each field

No Additional Properties

Type: integer Default: -1

The confidence value of the field

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

Describes result information of scanning license plates

No Additional Properties

Type: enum (of string)

The area information

Must be one of:

  • "Alabama"
  • "Alaska"
  • "Alberta"
  • "American Samoa"
  • "Arizona"
  • "Arkansas"
  • "British Columbia"
  • "California"
  • "Colorado"
  • "Connecticut"
  • "Delaware"
  • "District of Columbia"
  • "Florida"
  • "Georgia"
  • "Guam"
  • "Hawaii"
  • "Idaho"
  • "Illinois"
  • "Indiana"
  • "Iowa"
  • "Kansas"
  • "Kentucky"
  • "Louisiana"
  • "Maine"
  • "Manitoba"
  • "Maryland"
  • "Massachusetts"
  • "Michigan"
  • "Minnesota"
  • "Mississippi"
  • "Missouri"
  • "Montana"
  • "Nebraska"
  • "Nevada"
  • "New Brunswick"
  • "New Hampshire"
  • "New Jersey"
  • "New Mexico"
  • "New York"
  • "North Carolina"
  • "North Dakota"
  • "Nova Scotia"
  • "Ohio"
  • "Oklahoma"
  • "Ontario"
  • "Oregon"
  • "Pennsylvania"
  • "Puerto Rico"
  • "Quebec"
  • "Rhode Island"
  • "Saskatchewan"
  • "South Carolina"
  • "South Dakota"
  • "Tennessee"
  • "Texas"
  • "Utah"
  • "Vermont"
  • "Virginia"
  • "Washington"
  • "West Virginia"
  • "Wisconsin"
  • "Wyoming"

Type: boolean Default: false

(Optional) If vehicleInspectionSticker config is OPTIONAL, this is true if a Visual Inspection Sticker was found, false otherwise. If the config is MANDATORY, this field is always true.

Type: string Default: ""

(Optional) The year depicted on the Visual Inspection Sticker.

Type: string Default: ""

(Optional) The month depicted on the Visual Inspection Sticker.

Type: boolean Default: false

(Optional) This is true, if the Visual Inspection Sticker depicts a date in the future.

Type: object

Describes result information of scanning japanese landing permission tickets

No Additional Properties

JlpResult

Type: object

Yields field information of a japanese landing permission ticket

No Additional Properties

Type: object

Provides result information for japanese landing permission fields

No Additional Properties

Type: integer Default: -1

The confidence information of the field

Value must be greater or equal to -1 and lesser or equal to 100

Type: object

Provides result information for japanese landing permission fields

Same definition as airport

Type: object

Provides result information for japanese landing permission fields

Same definition as airport

Type: object

Describes result information of scanning meters

No Additional Properties

Type: string

The unit value. Only applicable for multi-field meter scanning.

Type: string

The position. Only applicable for OBIS meters - see https://onemeter.com/docs/device/obis/

Type: object

Describes result information of scanning odometers

No Additional Properties

Type: object

Describes result information of scanning general OCR

No Additional Properties

Type: object

Describes result information of scanning tire identification numbers (TIN)

No Additional Properties

Type: string

The production date on the TIN reformatted to YYYY/MM.

Type: integer

The computed tire age in years rounded down.

Type: string

The TIN text split by context with spaces as delimiter.

Type: object

Describes result information of scanning tire size specifications

No Additional Properties

Type: object

Describes result information of scanning tire makes

No Additional Properties

Type: object

Describes result information of scanning commercial tire IDs

No Additional Properties

Type: string

The text value of the commercial tire ID

Type: object

Describes result information of scanning shipping containers

No Additional Properties

Type: string

The text value of the shipping container

Type: object

Describes result information of scanning vehicle identification numbers (VIN)

No Additional Properties

Type: object

Specifies how and where the scan result images are delivered.

Same definition as imageContainer

Type: object

Output format and quality settings applied to all images exported with this scan result.

Same definition as imageParameters

Type: object

Response indicating scan session completion status. Includes exactly one info object (failInfo, abortInfo, or succeedInfo) corresponding to the status field value.

Type: object

The following properties are required:

  • failInfo
Type: object

The following properties are required:

  • abortInfo
Type: object

The following properties are required:

  • succeedInfo

Type: object

The result configuration that was active during the completed scan session.

Same definition as scanResultConfig

Type: enum (of string)

The final status of the scan session.

Must be one of:

  • "scanFailed"
  • "scanAborted"
  • "scanSucceeded"

Type: object

Populated when status is scanFailed. Contains the error that caused the failure.

Type: string

The last error received while trying to scan.

Type: object

Populated when status is scanAborted. Contains the reason for the abort.

Type: string

Optional message provided when the scan session was aborted.

Type: object

Populated when status is scanSucceeded. Contains an optional completion message.

Type: string

Optional informational message from the completed scan session.

Type: object

UI configuration options for the scan view, controlling optional controls, orientation, and overlays.

Type: object

Optional button that lets users toggle between portrait and landscape orientations.

Type: enum (of string)

Corner of the screen where the rotate button is positioned.

Must be one of:

  • "top_left"
  • "top_right"
  • "bottom_left"
  • "bottom_right"

Type: object

Optional pixel offset from the aligned corner position.

Type: integer Default: 0

Horizontal offset in pixels. Positive values move the element right, negative values move it left.

Type: integer Default: 0

Vertical offset in pixels. Positive values move the element down, negative values move it up.

Type: object

Deprecated. iOS only. Static text label on the scan view. Use the Simple Instruction Label UI Feedback preset instead.

Type: string

The text to display.

Type: string

Hex color string for the label text.

Type: integer

The font size of the label.

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Same definition as offset.x

Type: object

Deprecated. iOS only. Button that dismisses the scan view. Use toolbarTitle instead.

Type: string

The text displayed for the button.

Type: string

A color, denoted by a hex string of the button title.

Type: string

A color, denoted by a hex string used by the button title when pressed.

Type: string

A color, denoted by a hex string of the button background. The default is empty (clear color).

Type: integer

Button title font size in points (typically 8-72).

Type: string

The name of the font (note: the font must be available for the device).

Type: enum (of string) Default: "center"

The preset locations for the button along the x-axis.

Must be one of:

  • "center"
  • "left"
  • "right"

Type: enum (of string) Default: "bottom"

The preset locations for the button along the y-axis.

Must be one of:

  • "bottom"
  • "center"
  • "top"

Type: enum (of string) Default: "rect"

The preset used for width fill.

Must be one of:

  • "rect"
  • "fullwidth"

Type: number

A Float value indicating the corner rounding of the Done button.

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Same definition as offset.x

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Same definition as offset.x

Type: enum (of string)

Initial screen orientation when the scan view is presented.

Must be one of:

  • "portrait"
  • "landscape"

Type: string

Title shown on the toolbar with a back button. Fullscreen scanning only; ignored when using a ContainerView.

Type: object

Optional multi-mode segment control for switching between scanning configurations.

Type: array of string

Array of ScanView configuration filenames located in the assets folder. Each file defines a complete scanning mode configuration.

No Additional Items

Each item of this array must be:

Type: string

A JSON file located in the assets folder.

Type: array of string

Array of display names for each scanning mode shown to users in the segment control.

No Additional Items

Each item of this array must be:

Type: string

A user-visible string corresponding to the mode.

Type: integer

Zero-based index indicating which segment should be initially selected. Must be within the bounds of the titles array.

Type: string

Hex color code (e.g., 'FF0000' for red) applied to the selected segment and control tinting.

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Same definition as offset.x

Type: number

Pixel offset (positive or negative) for fine-tuning a UI element's position along one axis.

Same definition as offset.x

Type: object

Request to submit a User Corrected Result (UCR) for a previously scanned item.

Type: string

Unique identifier for the scan event, taken from PluginResult.blobKey. Used to correlate the correction with the original scan on the server.

Type: string

The corrected result value to report.

Type: object

Response from UCR (User Corrected Result) reporting. Must include either failInfo (if reporting failed) or succeedInfo (if successful), corresponding to the status field.

Type: object

The following properties are required:

  • failInfo
Type: object

The following properties are required:

  • succeedInfo

Type: enum (of string)

The final status of the UCR report submission.

Must be one of:

  • "ucrReportFailed"
  • "ucrReportSucceeded"

Type: object

Populated when status is ucrReportFailed. Contains the error details.

Type: string

The last error received while reporting UCR.

Type: integer

The error code received while connecting to server.

Type: string

The error message received while connecting to server.

Type: object

Populated when status is ucrReportSucceeded. Contains the server confirmation message.

Type: string

The confirmation message returned from the server.

Type: object

Response from cached events export operation. Includes either failInfo (if export failed) or succeedInfo (if successful), corresponding to the status field.

Type: object

The following properties are required:

  • failInfo
Type: object

The following properties are required:

  • succeedInfo

Type: enum (of string)

The final status of the export operation.

Must be one of:

  • "exportFailed"
  • "exportSucceeded"

Type: object

Populated when status is exportFailed. Contains the error that caused the failure.

Type: string

The last error received while exporting cached events.

Type: object

Populated when status is exportSucceeded. Contains the path to the exported file.

Type: string

Path to the generated file containing the exported cached events.