Companion
Functions
Link copied to clipboard
expect fun init(config: TireTreadScanViewConfig, tireWidth: Int? = null, onScanAborted: (String?) -> Unit, onScanProcessCompleted: (String) -> Unit, callback: (ScanEvent) -> Unit? = null, onError: (String?, Exception) -> Unit)
Initialises the scanner with a config object and the tire width.
expect fun init(config: String, tireWidth: Int? = null, onScanAborted: (String?) -> Unit, onScanProcessCompleted: (String) -> Unit, callback: (ScanEvent) -> Unit? = null, onError: (String?, Exception) -> Unit)
Initialises the scanner with a JSON config and the tire width.