Barcode Count View Delegate
Defined in framework ScanditBarcodeCapture
Note
Using this class requires the MatrixScan AR add-on.
- BarcodeCountViewDelegate
protocol BarcodeCountViewDelegate : NSObjectProtocol
Added in version 6.15.0
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, brushForRecognizedBarcode trackedBarcode: TrackedBarcode) -> Brush?
Added in version 6.15.0
This method is called only when the view uses the BarcodeCountViewStyle.dot style.
Callback method that can be used to set a Brush for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. It is called when a new recognized barcode appears. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView() callback will not be performed.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, brushForRecognizedBarcodeNotInList trackedBarcode: TrackedBarcode) -> Brush?
Added in version 6.15.0
This method is called only when the view uses the BarcodeCountViewStyle.dot style.
Callback method that can be used to set a Brush for a recognized barcode that’s not part of the target BarcodeCountCaptureList. It is called when a new recognized barcode that is not part of the target :type:barcode.count.BarcodeCountCaptureList appears. When BarcodeCountCaptureList is not set, this method will never be called. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView() callback will not be performed.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, brushForAcceptedBarcode trackedBarcode: TrackedBarcode) -> Brush?
Added in version 6.28.0
This method is called only when the view uses the BarcodeCountViewStyle.dot style.
Callback method that can be used to set a Brush for an accepted barcode. It is called when a barcode is accepted. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the accepted barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView() callback will not be performed.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, brushForRejectedBarcode trackedBarcode: TrackedBarcode) -> Brush?
Added in version 6.28.0
This method is called only when the view uses the BarcodeCountViewStyle.dot style.
Callback method that can be used to set a Brush for a rejected barcode. It is called when a barcode is rejected. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the accepted barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView() callback will not be performed.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, brushForCluster cluster: Cluster) -> Brush?
Added in version 8.5.0
Callback method that can be used to set a Brush for a cluster, typically based on its Cluster.expectationStatus.
If the callback returns nil or is not implemented, the engine applies its status-aware default: a red brush is drawn for clusters with ClusterExpectationStatus.deviates, and no brush is drawn otherwise.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, iconForRecognizedBarcode trackedBarcode: TrackedBarcode) -> BarcodeCountIcon?
Added in version 8.5.0
This method is called only when the view uses the BarcodeCountViewStyle.icon style.
Callback method that can be used to set a BarcodeCountIcon for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this icon will be used for recognized barcodes that are part of the target list. If the callback returns nil, no icon is drawn for that barcode and tapping the barcode’s location has no effect.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, iconForRecognizedBarcodeNotInList trackedBarcode: TrackedBarcode) -> BarcodeCountIcon?
Added in version 8.5.0
This method is called only when the view uses the BarcodeCountViewStyle.icon style.
Callback method that can be used to set a BarcodeCountIcon for a recognized barcode that’s not part of the target BarcodeCountCaptureList. When BarcodeCountCaptureList is not set, this method will never be called. If the callback returns nil, no icon is drawn for that barcode and tapping the barcode’s location has no effect.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, iconForAcceptedBarcode trackedBarcode: TrackedBarcode) -> BarcodeCountIcon?
Added in version 8.5.0
This method is called regardless of the view’s BarcodeCountView.style. Accepted barcodes are always rendered as BarcodeCountIcon instances.
Callback method that can be used to set a BarcodeCountIcon for an accepted barcode. If the callback returns nil, no icon is drawn for that barcode and tapping the barcode’s location has no effect.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, iconForRejectedBarcode trackedBarcode: TrackedBarcode) -> BarcodeCountIcon?
Added in version 8.5.0
This method is called regardless of the view’s BarcodeCountView.style. Rejected barcodes are always rendered as BarcodeCountIcon instances.
Callback method that can be used to set a BarcodeCountIcon for a rejected barcode. If the callback returns nil, no icon is drawn for that barcode and tapping the barcode’s location has no effect.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTapRecognizedBarcode trackedBarcode: TrackedBarcode) ->
VoidAdded in version 6.15.0
Callback method that can be used to define an action that should be performed once a recognized barcode is tapped. When setting a BarcodeCountCaptureList to the mode, this method will be called only when tapping recognized barcodes that are part of the target list. Called from the main thread.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTapFilteredBarcode trackedBarcode: TrackedBarcode) ->
VoidAdded in version 6.15.0
Callback method that can be used to define an action that should be performed once a filtered barcode is tapped. Called from the main thread.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTapRecognizedBarcodeNotInList trackedBarcode: TrackedBarcode) ->
VoidAdded in version 6.15.0
Callback method that can be used to define an action that should be performed once a recognized barcode that’s not part of the target BarcodeCountCaptureList is tapped. When BarcodeCountCaptureList is not set, this method will never be called. Called from the main thread.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTapAcceptedBarcode trackedBarcode: TrackedBarcode) ->
VoidAdded in version 6.28.0
Callback method that can be used to define an action that should be performed once an accepted barcode is tapped. Called from the main thread.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTapRejectedBarcode trackedBarcode: TrackedBarcode) ->
VoidAdded in version 6.28.0
Callback method that can be used to define an action that should be performed once a rejected barcode is tapped. Called from the main thread.
- barcodeCountView
optional func barcodeCountView(_ view: BarcodeCountView, didTap cluster: Cluster) ->
VoidAdded in version 7.1.0
Callback method that can be used to define an action that should be performed once a cluster is tapped. Called from the main thread.