MethodChannelDtbLink class

MethodChannelDtbLink

Inheritance

Constructors

Properties

btCtr Completer?
bluetooth completer
getter/setter pair
dtbCtr Completer?
dtb completer
getter/setter pair
eventChannel EventChannel
platform eventChannel handler
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
platform methodChannel handler
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemCtr Completer?
system completer
getter/setter pair

Methods

bluetoothBatteryInfo() Future<String>
get Battery Info from connected device
override
bluetoothConnectDevice({required BluetoothDevice device}) Future<int>
new connection bluetooth device
override
bluetoothContactlessFileUpload() Future<int>
required Contactless file upload when new device connected
override
bluetoothDeviceData() Future<DeviceData>
get connected bluetooth device data
override
bluetoothDisconnect() Future<String>
disconnect connected device
override
bluetoothEmvFileUpload() Future<int>
required Emv file upload when new device connected
override
bluetoothIsConnected() Future<bool>
che
override
bluetoothReconnectDevice() Future<BluetoothDevice?>
reconnect using already connected bluetooth device
override
bluetoothSerialNo() Future<String?>
get Serial no from connected device
override
bluetoothStartSearch() Future<void>
search nearby bluetooth devices
override
cardRead({required String amount, required int tranType, required String traceNo}) Future
if connected is true then you can call card read
override
doSale({required String track2, required String emv, required String traceNo, required double amount}) Future<Map<String, dynamic>>
transaction do sale
override
doVoid({required String amountStr, required String track2, required String encTrack2, required String rrn, required String authCode, required String traceNO}) Future<Map<String, dynamic>>
transaction do void. necessary do sale success
override
echoTest() Future<Map<String, dynamic>>
test echo transaction
override
getPlatformVersion() Future<String?>
get Platform version
override
healthCheck() Future
transaction healthCheck
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(dynamic event(String)) → dynamic
required function listen on dtb_link platform any event change response
override
ping() Future
api service check ping
override
syncKey() Future<ApiResponse<DownloadKeyRet>>
get new Sync Key for transaction. You don't need if called syncKey before called and terminal init function already SyncKey automatically called.
override
terminalDoInit({required String terminalId, required String trc}) Future<ApiResponse<DataInitRet>>
To make a transaction, you must create a terminal initial connection using the previously provided terminalId and Trc code.
override
terminalInitData() Future<DataInitRet?>
get connected terminal data
override
toString() String
A string representation of this object.
inherited
traceNo() Future<String>
get always new traceNo
override

Operators

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