init

expect fun init(config: TireTreadScanViewConfig, callback: TireTreadScanViewCallback? = null, onInitializationFailed: (Exception) -> Unit? = null)
expect fun init(config: String, callback: TireTreadScanViewCallback? = null, onInitializationFailed: (Exception) -> Unit? = null)
actual fun init(config: TireTreadScanViewConfig, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)

Initialize.

Parameters

config

Measurement system to use.

callback

Config, use default config if null.

onInitializationFailed

Scan initialization event, default is null, will return an exception if failed


actual fun init(config: String, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)