For the complete documentation index, see llms.txt. This page is also available as Markdown.
Page cover

MTSCRA Delegate Methods 1-10

After issuing the methods in section 3 Important Information About Bluetooth LE, the MTSCRA SDK libraries will call these Delegate methods (callback functions) to provide the requested data and / or a detailed response. For details about data received by these functions, see the Programmer's Manual (COMMANDS) for the specific device with which you are communicating.

For details about registering Delegate methods, see the demo application included with the SDK.

trackDataReadyNotification

The SDK sends this notification when card data is available from the device.

devConnectionNotification

The SDK sends this notification when the connection status of the device changes.

onDataReceived

Return a card object type with card swipe data.

Parameter

Description

cardDataObj

MTCardData object

instance

Instance ID

cardSwipeDidStart

Card swipe has started.

Parameter

Description

instance

Instance ID

cardSwipeDidGetTransError

Card swipe got an error during transmission.

onDeviceConnectionDidChange

Device connection changed whether from close to open or vice versa.

Parameter

Description

deviceType

MTSCRADeviceType object

connected

Boolean for connection state. True = Connected

False = Not connected

instance

Instance ID

bleReaderConnected

Bluetooth LE Reader was connected.

Parameter

Description

peripheral

CBPeripheral object

bleReaderDidDisconnected

Bluetooth LE Reader was disconnected.

Parameter

Description

connectionInfo

MTConnectionInfo object

bleReaderDidDiscoverPeripheral

Bluetooth LE Reader was discovered.

bleReaderStateUpdated

Bluetooth LE state changed. Enumerated possible values that would arrive via this delegate are:

Parameter

Description

state

MTSCRABLEState

Last updated