ZSDK_API  1.4.957
 All Classes Functions Enumerations Enumerator Properties Pages
<SmartCardReader> Protocol Referenceabstract

Provides access to the smartcard reader, for printers equipped with one. More...

#import <SmartCardReader.h>

Instance Methods

(NSData *) - getATR:
 Sends a CT_ATR command to the printer's smartcard reader, if present.
 
(NSData *) - doCommand:error:
 Sends a CT_DATA command to the printer's smartcard reader, if present.
 
(BOOL) - close:
 Turns the printer's smartcard reader off, if present.
 

Detailed Description

Provides access to the smartcard reader, for printers equipped with one.

Note
Only mobile Zebra printers are available with built-in readers.

Method Documentation

- (BOOL) close: (NSError **)  error

Turns the printer's smartcard reader off, if present.

This call should be made after communicating with the smartcard via the doCommand:error: method.

Parameters
errorWill be set to the error that occured.
- (NSData*) doCommand: (NSString *)  asciiHexData
error: (NSError **)  error 

Sends a CT_DATA command to the printer's smartcard reader, if present.

Parameters
asciiHexDataData to be sent to the smartcard using the CT_DATA card command.
errorWill be set to the error that occured.
Returns
A byte array containing the response from the smartcard reader.
- (NSData*) getATR: (NSError **)  error

Sends a CT_ATR command to the printer's smartcard reader, if present.

Parameters
errorWill be set to the error that occured.
Returns
A byte array containing the response from the smartcard reader.

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