ACS Bluetooth iOS/Mac OS X Library  1.0.0
 All Classes Files Functions Variables Typedefs Enumerator Properties
<ABTBluetoothReaderDelegate> Protocol Reference

The ABTBluetoothReaderDelegate protocol defines the response sent to a delegate of ABTBluetoothReader object. More...

#import <ABTBluetoothReader.h>

Inheritance diagram for <ABTBluetoothReaderDelegate>:

Instance Methods

(void) - bluetoothReader:didAttachPeripheral:error:
 Invoked when the Bluetooth reader attaches to the peripheral. More...
 
(void) - bluetoothReader:didReturnDeviceInfo:type:error:
 Invoked when the Bluetooth reader returns the device information. More...
 
(void) - bluetoothReader:didChangeCardStatus:error:
 Invoked when the Bluetooth reader changes the card status. More...
 
(void) - bluetoothReader:didChangeBatteryStatus:error:
 Invoked when the Bluetooth reader changes the battery status. More...
 
(void) - bluetoothReader:didChangeBatteryLevel:error:
 Invoked when the Bluetooth reader changes the battery level. More...
 
(void) - bluetoothReader:didAuthenticateWithError:
 Invoked when the Bluetooth reader is authenticated. More...
 
(void) - bluetoothReader:didReturnAtr:error:
 Invoked when the Bluetooth reader returns the ATR string after powering on the card. More...
 
(void) - bluetoothReader:didPowerOffCardWithError:
 Invoked when the Bluetooth reader powers off the card. More...
 
(void) - bluetoothReader:didReturnCardStatus:error:
 Invoked when the Bluetooth reader returns the card status. More...
 
(void) - bluetoothReader:didReturnResponseApdu:error:
 Invoked when the Bluetooth reader returns the response APDU. More...
 
(void) - bluetoothReader:didReturnEscapeResponse:error:
 Invoked when the Bluetooth reader returns the escape response. More...
 

Detailed Description

The ABTBluetoothReaderDelegate protocol defines the response sent to a delegate of ABTBluetoothReader object.

Method Documentation

- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didAttachPeripheral: (CBPeripheral *)  peripheral
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader attaches to the peripheral.

Parameters
bluetoothReaderthe Bluetooth reader.
peripheralthe peripheral.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didAuthenticateWithError: (NSError *)  error 
optional

Invoked when the Bluetooth reader is authenticated.

Parameters
bluetoothReaderthe Bluetooth reader.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didChangeBatteryLevel: (NSUInteger)  batteryLevel
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader changes the battery level.

Parameters
bluetoothReaderthe Bluetooth reader.
batteryLevelthe battery level in percentage.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didChangeBatteryStatus: (ABTBluetoothReaderBatteryStatus batteryStatus
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader changes the battery status.

Parameters
bluetoothReaderthe Bluetooth reader.
batteryStatusthe battery status.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didChangeCardStatus: (ABTBluetoothReaderCardStatus cardStatus
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader changes the card status.

Parameters
bluetoothReaderthe Bluetooth reader.
cardStatusthe card status.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didPowerOffCardWithError: (NSError *)  error 
optional

Invoked when the Bluetooth reader powers off the card.

Parameters
bluetoothReaderthe Bluetooth reader.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didReturnAtr: (NSData *)  atr
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader returns the ATR string after powering on the card.

Parameters
bluetoothReaderthe Bluetooth reader.
atrthe ATR string.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didReturnCardStatus: (ABTBluetoothReaderCardStatus cardStatus
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader returns the card status.

Parameters
bluetoothReaderthe Bluetooth reader.
cardStatusthe card status.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didReturnDeviceInfo: (NSObject *)  deviceInfo
type: (ABTBluetoothReaderDeviceInfo type
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader returns the device information.

Parameters
bluetoothReaderthe Bluetooth reader.
deviceInfothe device information.
typethe device information type.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didReturnEscapeResponse: (NSData *)  response
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader returns the escape response.

Parameters
bluetoothReaderthe Bluetooth reader.
responsethe escape response.
errorthe error.
- (void) bluetoothReader: (ABTBluetoothReader *)  bluetoothReader
didReturnResponseApdu: (NSData *)  apdu
error: (NSError *)  error 
optional

Invoked when the Bluetooth reader returns the response APDU.

Parameters
bluetoothReaderthe Bluetooth reader.
apduthe response APDU.
errorthe error.

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