SparkScan Toast Settings
Defined in package com.scandit.datacapture.barcode.spark.ui
- SparkScanToastSettings
class SparkScanToastSettingsAdded in version 8.6.0
- sparkScanToastSettings()
fun SparkScanToastSettings.sparkScanToastSettings(): SparkScanToastSettings
Added in version 8.6.0
Constructs a new SparkScan toast settings with default values loaded from native. Use this constructor when you want to use the platform’s default toast configuration. For Capacitor, Cordova, and React Native, use the parameterized constructor with no arguments instead.
- toastEnabled
var toastEnabled:
BooleanAdded in version 8.6.0
Should toasts be shown or not.
Default is true.
- toastBackgroundColor
var toastBackgroundColor: Color?
Added in version 8.6.0
Background color of the toast. If this property is null, a default color will be used.
Default is null.
- toastTextColor
var toastTextColor: Color?
Added in version 8.6.0
Text color of the toast. If this property is null, a default color will be used.
Default is null.
- selectionModeOnMessage
var selectionModeOnMessage: String?
Added in version 8.6.0
Shown when SparkScanSettings.selectionMode is set to SelectionMode.ON. Replaces the deprecated
TargetModeEnabledMessage.Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- selectionModeOffMessage
var selectionModeOffMessage: String?
Added in version 8.6.0
Shown when SparkScanSettings.selectionMode is set to SelectionMode.OFF. Replaces the deprecated
TargetModeDisabledMessage.Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- continuousModeEnabledMessage
var continuousModeEnabledMessage: String?
Added in version 8.6.0
Text of the toast when SparkScanScanningBehavior.CONTINUOUS capturing mode enabled.
Default is null. If this property is null, a default message will be shown.
If this property is an empty string, the toast will not be shown.
- continuousModeDisabledMessage
var continuousModeDisabledMessage: String?
Added in version 8.6.0
Text of the toast when SparkScanScanningBehavior.CONTINUOUS capturing mode disabled.
Default is null. If this property is null, a default message will be shown.
If this property is an empty string, the toast will not be shown.
- scanPausedMessage
var scanPausedMessage: String?
Added in version 8.6.0
Text of the toast when SparkScanPreviewBehavior.PERSISTENT capturing mode is enabled and scanning is paused.
Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- zoomedInMessage
var zoomedInMessage: String?
Added in version 8.6.0
Text of the toast when zooming in.
Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- zoomedOutMessage
var zoomedOutMessage: String?
Added in version 8.6.0
Text of the toast when zooming out.
Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- torchEnabledMessage
var torchEnabledMessage: String?
Added in version 8.6.0
Text of the toast when torch is enabled.
Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.
- torchDisabledMessage
var torchDisabledMessage: String?
Added in version 8.6.0
Text of the toast when torch is disabled.
Default is null. If this property is null, a default message will be shown. If this property is an empty string, the toast will not be shown.