NewlandProfileModel class
Newland settings, sent on as ACTION_BAR_SCANCFG broadcasts.
Newland has no per-app profiles, so all of this changes the scanner for the whole device and stays after your app exits:
Scanwedge.initialize()switches the scanner to broadcast output, so it stops typing into other apps.keepDefaults: falseswitches symbologies off, and only Restore default in the scanner settings switches them back on.- Restore default also switches broadcast output off, so scans stop arriving until
Scanwedge.initialize()runs again. gs1DataBarandgs1DataBarExpandedshare one switch, so asking for either enables both. On a CM60L both also read back asgs1DataBar.- The scanner keeps a
minLengthabove its current max length, so set both. - Out-of-range lengths,
0included, are ignored rather than meaning "no limit".
- Inheritance
-
- Object
- ProfileModel
- NewlandProfileModel
Constructors
-
NewlandProfileModel({required String profileName, List<
BarcodeConfig> ? enabledBarcodes, bool keepDefaults = true, bool? sendScanFailBroadcast, NewlandTriggerMode? triggerMode, Duration? scanTimeout, Duration? rereadDelay, Duration? scanInterval, bool? soundOnScan, bool? vibrateOnScan, bool? ledOnScan, bool? mainTriggerKey, bool? leftTriggerKey, bool? rightTriggerKey, bool? pistolGripTrigger})
Properties
-
customMap
→ Map<
String, dynamic> -
no setteroverride
-
enabledBarcodes
↔ List<
BarcodeConfig> ? -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepDefaults ↔ bool
-
getter/setter pairinherited
- ledOnScan → bool?
-
final
- leftTriggerKey → bool?
-
final
- mainTriggerKey → bool?
-
final
- pistolGripTrigger → bool?
-
final
- profileName ↔ String
-
getter/setter pairinherited
- rereadDelay → Duration?
-
How long the same barcode is ignored after a read. Zero allows an immediate reread.
final
- rightTriggerKey → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanInterval → Duration?
-
Gap between decode attempts in continuous mode. The device floors it at 50 ms.
final
- scanTimeout → Duration?
-
One decode attempt. The device caps it at 9 seconds.
final
- sendScanFailBroadcast → bool?
-
On by default. The plugin drops failed scans anyway, so switching it off only saves traffic.
final
- soundOnScan → bool?
-
final
-
toMap
→ Map<
String, dynamic> -
no setterinherited
- triggerMode → NewlandTriggerMode?
-
final
- vibrateOnScan → bool?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited