InfineaSdkFlutter class

Constructors

InfineaSdkFlutter()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nextListenerId int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

barcodeGetScanButtonMode() Future<int>
Get the scan button mode
barcodeGetScanMode() Future<SCAN_MODES?>
Get the current barcode scan mode, one of SCAN_MODES
barcodeSetScanBeep({required bool enabled, required List<int> beepData}) Future<bool?>
Sets the sound, which is used upon successful barcode scan. This setting is not persistent and is best to configure it upon connect. @note A sample beep containing of 2 tones, each with 400ms duration, first one 2000Hz and second - 5000Hz will look int beepData[]=2000,400,5000,400 @param {BOOL} enabled turns on or off beeping @param {List
barcodeSetScanButtonMode({required bool scanButtonMode}) Future<bool?>
Enable or Disable scan button. @param {bool} scanButtonMode true or false
barcodeSetScanMode({required SCAN_MODES scanMode}) Future<bool?>
Set a specific scan mode, one of SCAN_MODES @param {int} scanMode One of SCAN_MODES
barcodeStartScan() Future<bool?>
Start scan engine. Can be used for on screen scan button
barcodeStopScan() Future<bool?>
Stop scan engine. If using an on screen scan button, call this after a barcode is read.
connect() Future<void>
Connect the hardware
disconnect() Future<void>
Disconnect the hardware
emsrConfigMaskedDataShowExpiration({required bool showExpiration, required bool showServiceCode, required int unmaskedDigitsAtStart, required int unmaskedDigitsAtEnd, required int unmaskedDigitsAfter}) Future<bool?>
Fine-tunes which part of the card data will be masked, and which will be sent in clear text for display/print purposes @param {bool} showExpiration If set to TRUE, expiration date will be shown in clear text, otherwise will be masked @param {bool} showServiceCode if set to TRUE, service code will be shown in clear text, otherwise will be masked @param {int} unmaskedDigitsAtStart the number of digits to show in clear text at the start of the PAN, range from 0 to 6 (default is 4) @param {int} unmaskedDigitsAtEnd the number of digits to show in clear text at the end of the PAN, range from 0, to 4 (default is 4) @param {int} unmaskedDigitsAfter the number of digits to unmask after the PAN, i.e. 4 will give you the expiration, 7 will give expiration and service code (default is 0)
emsrGetDeviceInfo() Future<Map?>
Returns general information about the encrypted head - firmware version, ident, serial number
emsrGetKeyVersion({required int keyID}) Future<bool?>
Gets the key version from the keyID that is provided @param {int} keyID the ID of the key to get the version
emsrIsTampered() Future<bool?>
Check if encrypted head is tampered
emsrSetActiveHead({required int activeHead}) Future<bool?>
Set encryption active head @param {int} activeHead The encrypted head to use with all other emsr functions
emsrSetEncryption({required int encryption, required int keyID, required Map params}) Future<bool?>
Set encryption type @param {int} encryption algorithm used @param {int} keyID the ID of the key to use. The key needs to be suitable for the provided algorithm. @param {Map} params optional algorithm parameters.
getBatteryInfo() Future<Map>
Get battery info
getConnectedDeviceInfo({required SUPPORTED_DEVICE_TYPES type}) Future<Map>
Get the connected device info. Info will be passed to success function @param {SUPPORTED_DEVICE_TYPES} deviceType
getConnectedDevicesInfo() Future<List>
Get the all connected devices info. Info will be passed to success function
getFirmwareFileInformation({required String resourcePath}) Future<bool?>
Get information of a specific firmware file. Info will be passed to success function @param {string} resourcePath The path to resource file with "platforms/ios/www/resources" as the root folder, your files must be copied to here. If you have "platforms/ios/www/resources/test.txt", only pass "test.txt" as resourcePath parameter.
getPassThroughSync() Future<bool>
Get pass-thru sync enabled or disabled
getUSBChargeCurrent() Future<int?>
Get current USB charge current
iHUBGetPortsInfo() Future<String?>
Returns a string of iHUB Port Info
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rfClose() Future<bool>
Power down the RF module, when not in use.
rfInit() Future<bool>
Power on the RF module. Continuously leaving the RF module powered on will drain battery.
setAutoOffWhenIdle({required int timeIdle, required int timeDisconnected}) Future<void>
Set IPC device sleep timer @param {int} timeIdle this is the idle time, connected or not, after which Linea will turn off. The default value is 5400 seconds (90 minutes) @param {int} timeDisconnected this is the time with no active program connection, after which Linea will turn off. The default value is 30 seconds
setCharging({required bool value}) Future<bool?>
Set sled's battery to charge iOS device. @param {bool} value true or false
setDeveloperKey({required String key}) Future<Map?>
This must be the first function that gets called, and a valid develop key must be passed in, and validated, BEFORE any other functions get executed. @param {string} key The developer key given by IPC
setPassThroughSync({required bool value}) Future<bool>
Set pass-thru sync @param {bool} value true or false
setUSBChargeCurrent({required int value}) Future<int>
Set the USB current @param {int} value Must be one of 500, 1000, 2100, 2400
startListening(Listener listener) CancelListening
toString() String
A string representation of this object.
inherited
updateFirmwareData({required String resourcePath}) Future<bool?>
Update firmware @param {string} resourcePath The path to resource file with "platforms/ios/www/resources" as the root folder, your files must be copied to here. If you have "platforms/ios/www/resources/test.txt", only pass "test.txt" as resourcePath parameter.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

sdkVersion Future<String>
SDK Version
no setter