Zebra Technologies ZQ110 Saw User Manual


 
ZQ110
Rev. 1.00
- 25 -
Mobile Printer
iOS SDK API Reference Guide
5-3-6 connect
Connect to Target Printer
[Function prototype]
- (BOOL)connect
[Discussion]
This method does not work when AutoConnection is set using
BXL_CONNECTIONMODE_AUTO(default, == 0)
The target of BXPrininterController should be set in advance.
[Availability]
SDK 1.0.0 and later
5-3-7 disconnect
Disconnect from the Connected Printer
[Function prototype]
- (void)disconnect
[Discussion]
This method does not work when AutoConnection is set using
BXL_CONNECTIONMODE_AUTO(default, == 0).
[Availability]
SDK 1.0.0 and later
5-3-8 disconnectWithTimeout
Disconnect from the Connected Printer with Timeout
If data remains in the buffer, this remaining data will be transmitted to the printer.
[Function prototype]
- (void)disconnectWithTimeout:(int)timeout
[Parameters]
int timeout
(timeout == 0)
The timeout is not used. Disconnects the connected printer immediately even if
data exist in the buffer.
(timeout < 0)
The connection is not disconnected until the data remaining in the buffer have
been transmitted to the printer. This transmission can take a long time if the data-
size is large.
(timeout > 0)
If data remains in the buffer, this remaining data will be transmitted to the printer
for the duration specified by the timeout value, and then the connected printer is
disconnected.
[Availability]
SDK 1.0.0 and later