Zebra API for iOS (Build v1.6.1158)
Loading...
Searching...
No Matches
<SmartCardReader> Protocol Reference

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

#include <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

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

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

Method Documentation

◆ close:

- (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.

◆ doCommand:error:

- (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.

◆ getATR:

- (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: