IDTech iOS/OSX SDK Guide  1.1.052
API reference for BTPay 200
 All Data Structures Functions Variables Properties Pages
<IDT_UniMag_Delegate> Protocol Reference

#import <IDT_UniMag.h>

Inheritance diagram for <IDT_UniMag_Delegate>:

Instance Methods

(void) - deviceConnected
 Fires when device connects. If a connection is established before the delegate is established (no delegate to send initial connection notification to), this method will fire upon establishing the delegate.
 
(void) - deviceDisconnected
 Fires when device disconnects.
 
(void) - plugStatusChange:
 
(void) - dataInOutMonitor:incoming:
 
(void) - swipeMSRData:
 
(void) - deviceMessage:
 

Detailed Description

Protocol methods established for IDT_UniMag class

Method Documentation

- (void) dataInOutMonitor: (NSData *)  data
incoming: (BOOL)  isIncoming 
optional

All incoming/outgoing data going to the device can be monitored through this delegate.

Parameters
dataThe serial data represented as a NSData object
isIncomingThe direction of the data
  • TRUE specifies data being received from the device,
  • FALSE indicates data being sent to the device.
- (void) deviceMessage: (NSString *)  message
optional

Receives messages from the framework

Parameters
messageString message transmitted by framework
- (void) plugStatusChange: (BOOL)  deviceInserted
optional

Monitors the headphone jack for device insertion/removal.

Parameters
deviceInsertedTRUE = device inserted, FALSE = device removed
- (void) swipeMSRData: (IDTMSRData *)  cardData
optional

Receives card data from MSR swipe.

Parameters
cardDataCaptured card data from MSR swipe

The documentation for this protocol was generated from the following file: