TireTreadScanView

fun TireTreadScanView(context: AppContext, config: TireTreadScanViewConfig, tireWidth: Int? = null, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)
fun TireTreadScanView(context: AppContext, config: String, tireWidth: Int? = null, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)
fun TireTreadScanView(context: AppContext, config: TireTreadScanViewConfig, tireWidth: Int?, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)

Initializes the scan view with a config object and a tire width and assigns it to the provided context.

Parameters

context

the application context.

config

the path to a JSON file containing the config or the config itself as string representation.

tireWidth

the width of the tire in mm when using metric system or inch when using imperial system.

callback

the callback for the scan view.

onInitializationFailed

a callback for handling initialization failure.


fun TireTreadScanView(context: AppContext, config: TireTreadScanViewConfig, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)

Initializes the scan view with a config object and assigns it to the provided context.

Parameters

context

the application context.

config

the path to a JSON file containing the config or the config itself as string representation.

callback

the callback for the scan view.

onInitializationFailed

a callback for handling initialization failure.


fun TireTreadScanView(context: AppContext, config: String, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)

Initializes the scan view with a JSON config and assigns it to the provided context.

Parameters

context

the application context.

config

the path to a JSON file containing the config or the config itself as string representation.

callback

the callback for the scan view.

onInitializationFailed

a callback for handling initialization failure.


fun TireTreadScanView(context: AppContext, config: String, tireWidth: Int?, callback: TireTreadScanViewCallback?, onInitializationFailed: (Exception) -> Unit?)

Initializes the scan view with a JSON config and a tire width and assigns it to the provided context.

Parameters

context

the application context.

config

the path to a JSON file containing the config or the config itself as string representation.

tireWidth

the width of the tire in mm when using metric system or inch when using imperial system.

callback

the callback for the scan view.

onInitializationFailed

a callback for handling initialization failure.