EM220II
Rev. 1.00
- 26 -
Mobile Printer
iOS SDK API Reference Guide
5-3-6 connect
Connect to target printer.
[Function prototype]
- (BOOL)connect
[Discussion]
This method not works
when AutoConnection is setting in BXL_CONNECTIONMODE_AUTO(default, == 0)
Target of BXPrininterController property should be set in advance.
[Availability]
SDK 1.0.0 and later
5-3-7 disconnect
Disconnect to connected printer.
[Function prototype]
- (void)disconnect
[Discussion]
This method not works
when AutoConnection is setting in BXL_CONNECTIONMODE_AUTO(default, == 0).
[Availability]
SDK 1.0.0 and later
5-3-8 disconnectWithTimeout
Disconnects the connected printer.
If the data remained in the buffer, the data remained 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
the data exist in the buffer.
(timeout < 0)
The connection is not disconnected until the data remained in the buffer have
been transmitted to the printer. It takes long time if the data-size is too large
(timeout > 0)
If the data remained in the buffer, the data remained will be transmitted to the
printer within the timeout and then the connected printer will be disconnected.
[Availability]
SDK 1.0.0 and later