Class
TchekShootInspectBuilder
public class TchekShootInspectBuilder
The builder used for customizing the features of Shoot/Inspect
Usage:
let builder = TchekShootInspectBuilder(delegate: delegate) { builder in
builder.thumbBg = .brown
builder.thumbBorder = .blue
builder.thumbBorderBadImage = .orange
builder.thumbBorderGoodImage = .green
builder.thumbDot = .cyan
builder.thumbBorderThickness = 0
builder.thumbCorner = 0
builder.btnTuto = .yellow
builder.btnTutoText = .cyan
builder.tutoPageIndicatorDot = .darkGray
builder.tutoPageIndicatorDotSelected = .blue
builder.carOverlayGuide = .systemPink
builder.btnRetake = .yellow
builder.btnRetakeText = .cyan
builder.previewBg = .orange
builder.btnEndNext = .yellow
builder.btnEndNextText = .cyan
builder.endBg = .black
builder.endNavBarBg = .purple
builder.endNavBarText = .red
}
Initializers
init(delegate:showCancelButton:immatriculation:ui:)
public init(delegate: TchekShootInspectDelegate,
showCancelButton: Bool = true,
immatriculation: String? = nil,
ui: ((TchekShootInspectBuilder) -> Void)? = nil)
Primary constructor
Parameters
| Name | Type | Description |
|---|---|---|
| delegate | TchekShootInspectDelegate |
Delegate that will be notified of events from the Shoot/Inspect flow |
| showCancelButton | Bool |
Display the cancel button on camera. The button pop the Shoot Inspect |
| immatriculation | String? |
Immatriculation of the vehicle to match with the tchek Id |
| ui | ((TchekShootInspectBuilder) -> Void)? |
Lambda to easily set-up the builder |
Properties
thumbBorderBadImage
public var thumbBorderBadImage: UIColor
The thumb image border color when the photo is bad. Bad quality, not a car...
thumbBorderGoodImage
public var thumbBorderGoodImage: UIColor
The thumb image border color when the photo is good
thumbBorderThickness
public var thumbBorderThickness: CGFloat
The thumb image border color thickness.
tutoPageIndicatorDotSelected
public var tutoPageIndicatorDotSelected: UIColor
The page control indicator selected color
btnRetakeText
public var btnRetakeText: UIColor
The button color of Retake photo available in Preview
btnEndNextText
public var btnEndNextText: UIColor
The text button color of button on Shoot Inspect End
btnSkipTextSelected
public var btnSkipTextSelected: UIColor
The skip button text color on selected state