DtbLinkPlatform class abstract

DtbLinkPlatform

Inheritance
  • Object
  • PlatformInterface
  • DtbLinkPlatform
Implementers

Constructors

DtbLinkPlatform()
Constructor DtbLinkPlatform

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bluetoothBatteryInfo() → Future<String>
get Battery Info from connected device
bluetoothConnectDevice({required BluetoothDevice device}) → Future
new connection bluetooth device
bluetoothContactlessFileUpload() → Future
required Contactless file upload when new device connected
bluetoothDeviceData() → Future<DeviceData>
get connected bluetooth device data
bluetoothDisconnect() → Future<String>
disconnect connected device
bluetoothEmvFileUpload() → Future
required Emv file upload when new device connected
bluetoothIsConnected() → Future<bool>
che
bluetoothReconnectDevice() → Future
reconnect using already connected bluetooth device
bluetoothSerialNo() → Future<String?>
get Serial no from connected device
bluetoothStartSearch() → Future<void>
search nearby bluetooth devices
cardRead({required String amount, required int tranType, required String traceNo}) → Future
if connected is true then you can call card read
doCancelCardRead() → Future
user cancel card read
doSale({required BuildContext context, required double amount, String? traceNO}) → Future<Map<String, dynamic>>
transaction do sale
doVoid({required String amountStr, required String encTrack2, required String rrn, required String authCode, required String traceNO}) → Future<Map<String, dynamic>>
transaction do void. necessary do sale success
dtbLibInit(InitType type) → Future<void>
Init type
echoTest() → Future<Map<String, dynamic>>
test echo transaction
encrypt(String pin) → String
Encrypt
getPlatformVersion() → Future<String?>
get Platform version
healthCheck() → Future
transaction healthCheck
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
ping() → Future
api service check ping
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.
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.
terminalInitData() → Future<DataInitRet?>
get connected terminal data
toString() → String
A string representation of this object.
inherited
traceNo() → Future<String>
get always new traceNo
tranErrorMsg(String errorCode) → String?
transaction error message by error code

Operators

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

Static Properties

instance ↔ DtbLinkPlatform
instance of DtbLinkPlatform
getter/setter pair