Skip to main content
Speed up SparkScan integration with Agent Skills

Install the Scandit plugin and use the /sparkscan-net-ios skill so that your AI coding agent can integrate, debug, and customize SparkScan on .NET iOS following Scandit's recommended patterns. More info →

Run the following command in your project directory. It detects the supported coding agents you have installed and adds the Scandit plugin to each. Re-run it to update.

npx plugins add scandit/skills

Prefer to set it up yourself? Manual installation steps for each agent →

SparkScan settings reference

This page lists the SparkScan settings and view properties in .NET iOS, with their defaults and allowed values as the API reference states them. A blank default means the API reference states none. For what the workflow settings do for your users, see How SparkScan works.

Options​

SparkScanSettings​

Set these on SparkScanSettings. To change them on a running SparkScan, call SparkScan.ApplySettingsAsync().

NameTypeDefaultValuesWhat it does
SelectionModeSelectionModeAutoAuto, Off, OnWhether users confirm the aimed barcode before it's scanned. Added in 8.5.0.
ScanIntentionScanIntentionSmartSmart, ManualThe scan intention algorithm. While SelectionMode is On, the value is kept but doesn't take effect.
CodeDuplicateFilterTimeSpan-2 (CodeDuplicate.DefaultDuplicateFilter)-2, -1, 0, or a positive intervalThe interval in which a barcode with the same symbology and data counts as a duplicate. -2 depends on ScanIntention, -1 reports a code only once until scanning stops, and 0 reports every detection. If you keep the default and turn the selection mode On, SparkScan doesn't filter duplicates, so users can select the same barcode again.
BatterySavingBatterySavingModeAutoAuto, On, OffThe battery saving mode. Auto turns battery saving on when the device uses more battery than usual.
EnabledSymbologiesICollection<Symbology>EmptyThe enabled symbologies. Read-only. All symbologies are off until you enable them.
EnableSymbology()MethodTurns one symbology on or off.
EnableSymbologies()MethodTurns on a collection of symbologies. An overload that takes a CompositeType turns on the symbologies that composite type needs; it was added in 8.3.0.
GetSymbologySettings()MethodReturns the SymbologySettings of one symbology, for example to change its active symbol counts.
EnabledCompositeTypesCompositeTypeCompositeType flagsThe composite codes to scan. Also enable the symbologies they're made of. Added in 8.3.0.

SparkScanViewSettings​

Set these on SparkScanViewSettings before you create the SparkScanView.

NameTypeDefaultValuesWhat it does
ScanningBehaviorSparkScanScanningBehaviorSingleSingle, ContinuousWhether the view scans one barcode per trigger or keeps scanning. Added in 8.7.0.
PreviewBehaviorSparkScanPreviewBehaviorDefaultDefault, PersistentWhether the mini preview hides or stays visible when the scanner isn't scanning. Added in 8.7.0.
HoldToScanEnabledbooltrueWhether the view keeps scanning while users hold the trigger button. Ignored while SelectionMode is On.
HardwareTriggerEnabledboolfalseWhether the volume button starts scanning.
TriggerButtonCollapseTimeoutTimeSpan5 secondsA negative value means no timeoutThe time after which the view returns to its idle state and collapses the trigger button.
InactiveStateTimeoutTimeSpan10 secondsThe time after which the view stops capturing.
DefaultMiniPreviewSizeSparkScanMiniPreviewSizeRegularRegular, ExpandedThe size of the mini preview when it first shows.
DefaultTorchStateTorchStateOffOn, Off, AutoThe torch state when the camera starts. With Auto, the view hides the torch control.
DefaultCameraPositionCameraPositionWorldFacingWorldFacing, UserFacing, UnspecifiedThe camera the view starts with. In beta.
ZoomFactorOutfloat1The camera's zoom factor.
ZoomFactorInfloat2The zoom factor after users tap the zoom switch control.
SoundEnabledbooltrueWhether the scan feedback plays a sound.
HapticEnabledbooltrueWhether the scan feedback vibrates.
VisualFeedbackEnabledbooltrueWhether the view shows visual feedback after a scan.
SelectionModeCandidateBrushBrush?The brush for candidate barcodes while SelectionMode is Auto. When null, the view uses the default brush. Added in 8.5.0.
ToastSettingsSparkScanToastSettingsThe text, colors and visibility of the toast messages.

SparkScanView properties​

Set these on the SparkScanView instance.

NameTypeDefaultValuesWhat it does
FeedbackISparkScanFeedbackDelegateThe delegate that returns a success or error feedback for each barcode. Without one, the view emits the success feedback.
TriggerButtonVisiblebooltrueWhether the trigger button shows.
TriggerButtonImageImage?The image in the trigger button.
TriggerButtonCollapsedColorColor?The background color of the collapsed trigger button.
TriggerButtonExpandedColorColor?The background color of the expanded trigger button.
TriggerButtonAnimationColorColor?The color of the pulsing animation around the trigger button while the scanner is active.
TriggerButtonTintColorColor?The tint color of the trigger button.
PreviewSizeControlVisiblebooltrueWhether the mini preview size control shows.
PreviewCloseControlVisiblebooltrueWhether the mini preview close control shows.
TorchControlVisiblebooltrueWhether the torch control shows. Hidden when DefaultTorchState is Auto.
ZoomSwitchControlVisiblebooltrueWhether the zoom switch control shows.
ScanningBehaviorButtonVisibleboolfalseWhether the toolbar shows the scanning behavior button.
SelectionModeButtonVisibleboolfalseWhether the toolbar shows the button that switches SelectionMode between On and Off. Added in 8.5.0.
CameraSwitchButtonVisibleboolfalseWhether the toolbar shows the camera switch button. In beta.
BarcodeCountButtonVisibleboolfalseWhether the toolbar shows the MatrixScan Count button.
BarcodeFindButtonVisibleboolfalseWhether the toolbar shows the MatrixScan Find button.
LabelCaptureButtonVisibleboolfalseWhether the toolbar shows the Smart Label Capture button. Added in 8.3.0.
ToolbarBackgroundColorColor?#121619CCThe background color of the toolbar.
ToolbarIconActiveTintColorColor?#FBC02CThe color of active toolbar icons.
ToolbarIconInactiveTintColorColor?#FFFFFFThe color of inactive toolbar icons.
DefaultBrushBrushThe default brush that highlights barcodes. Static and read-only.

Framework differences​

In .NET iOS, these options differ from the other SparkScan frameworks:

  • SparkScanView raises events, such as ViewStateChanged and BarcodeCountButtonTapped, instead of taking a UI listener.
  • ScanningBehavior and PreviewBehavior were added in 8.7.0. On iOS, Android and Web, they were added in 8.5.0.
  • LabelCaptureButtonVisible was added in 8.3.0, later than on iOS and Android.
  • HardwareTriggerEnabled starts scanning with the volume button only. On .NET Android, you pick the button with HardwareTriggerKeyCode.
  • The API reference states the toolbar color defaults: #121619CC, #FBC02C and #FFFFFF. For .NET Android, it states null.

Next step​

Choosing which barcode types to scan