7.7 Allocate/Initialize IDT_NEO2 Object
45
func lcdDisplay(mode: Int32, lines: [AnyObject]!)
func pinpadData(_ value: Data, keySN KSN: Data, event: EVENT_PINPAD_Types)
func emvTransactionData(emvData:
!, errorCode error: Int32)
7.7
Allocate/Initialize IDT_NEO2 Object
A Singleton instance has been established in the
class. To utilize the delegate protocols, best practices
would be to initialize the connection by setting the delegate with the singleton instance.
override
func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
=
self
}
7.8
Sample Project Tutorial
Using Xcode 7.3.1, we will create a sample project that will interface with the NEO2 and will perform the following
activities:
• Auto-Connect and display connection status
• Get Device Firmware
• Start/Stop Transaction Request for CTLS/MSR (tap/swipe)
• Start/Complete/Cancel EMV Transaction
• Show LCD Display for EMV transaction
• Automatically select first AID or first Language if prompted
Protocol Delegates:
• Delegate to receive card swipes
• Delegate to detect headphone plug changes
• Delegate to detect device connected
• Delegate to detect device disconnected
• Delegate to receive EMV/CTLS tag data
IDTech iOS SDK Guide for NEO2 #80152802-001