Tire Tread Scan View
Initializes a composable with the configuration that was provided with config.
When the scan starts, events are being emitted through callback. If DefaultUI is disabled these events can be used to provide further information to the user (see ScanEvent)
Once the scan is finished and onScanProcessCompleted is invoked, your application should take back the control of the workflow and possibly continue to a result screen.
If DefaultUI is used and tireWidth is not provided, a separate screen will be shown to the user before the scan starts to provide this information. This behaviour can be adapted by providing the correct configuration. See Documentation for further information.
Parameters
configuration used to set up the scan process
optional value for the width of the tire
a callback that is invoked when the scan process is aborted
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error
Initializes a composable with the configuration in form of a JSON string that was provided with config.
When the scan starts, events are being emitted through callback. If DefaultUI is disabled these events can be used to provide further information to the user (see ScanEvent)
Once the scan is finished and onScanProcessCompleted is invoked, your application should take back the control of the workflow and possibly continue to a result screen.
If DefaultUI is used and tireWidth is not provided, a separate screen will be shown to the user before the scan starts to provide this information. This behaviour can be adapted by providing the correct configuration. See Documentation for further information.
Parameters
configuration used to set up the scan process.
optional value for the width of the tire, in mm.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization
Initializes the scan view with a config object and a tire width and assigns it to the provided context.
Parameters
the application context.
the path to a JSON file containing the config or the config itself as string representation.
optional value for the width of the tire, in mm.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization
Initializes the scan view with a config object and assigns it to the provided context.
Parameters
the application context.
the path to a JSON file containing the config or the config itself as string representation.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization
Initializes the scan view with a JSON config and assigns it to the provided context.
Parameters
the application context.
the path to a JSON file containing the config or the config itself as string representation.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization
Initializes the scan view with a JSON config and a tire width and assigns it to the provided context.
Parameters
the application context.
the path to a JSON file containing the config or the config itself as string representation.
optional value for the width of the tire, in mm.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization
Initializes the scan view with a standard config, and assigns it to the provided context.
Parameters
the application context.
a callback that is invoked when the scan process is aborted.
a callback that is invoked once the scan process has finished.
a callback that is invoked when a scan event was emitted
a callback that is invoked when the scan process encountered an error during initialization