Protocol
TchekShootInspectDelegate
public protocol TchekShootInspectDelegate
A protocol to implement in order to be notified of events from the Shoot/Inspect flow
Usage:
extension ViewController: TchekShootInspectDelegate {
func onDetectionEnd(tchekScan: TchekScan, immatriculation: String?) {
print("\(self): onDetectionEnd: tchekScan: \(tchekScan.id)")
}
}
Requirements
onDetectionInProgress()
func onDetectionInProgress()
Method called when the detection is in progress
onDetectionEnd(tchekScan:immatriculation:)
func onDetectionEnd(tchekScan: TchekScan, immatriculation: String?)
Method called when the detection at the end of the Shoot/Inspect flow is done
Parameters
| Name | Type | Description |
|---|---|---|
| tchekScan | TchekScan |
TchekScan object resulting from the successful Shoot/Inspect flow |
| immatriculation | String? |
Immatriculation of the inspected vehicle, null if not give to builder |