TswScannerConfig

Configuration for the sidewall scanner.

Construct an instance, override only what you need, and pass the result into io.anyline.tiretread.sdk.api.AnylineTireSidewallScanner.scan. UI strings live under texts; scan-level inputs (such as correlationId) sit at the top level.

Example (Android, Kotlin):

val config = TswScannerConfig().apply {
texts.textAlignTire = getString(R.string.tsw_align_tire)
texts.textHoldSteady = getString(R.string.tsw_hold_steady)
correlationId = myWorkflowId // version-4 UUID
}
scanner.scan(this, clientId, config) { result -> /* ... */}

Example (iOS, Swift):

let config = TswScannerConfig()
config.texts.textAlignTire = NSLocalizedString("tsw_align_tire", comment: "")
config.texts.textHoldSteady = NSLocalizedString("tsw_hold_steady", comment: "")
config.correlationId = myWorkflowId // version-4 UUID
AnylineTireSidewallScanner().scan(from: self, clientId: clientId, config: config) { ... }

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Optional ID to correlate scans across multiple Anyline products, e.g. Tire Sidewall and Tire Tread scans. Must be a version-4 UUID when set; leave null to send none.

Link copied to clipboard

Localizable UI strings shown by the scanner overlay. Override individual strings via config.texts.textXxx = …; see TswScannerTexts.