StarXpand SDK for iOS/Android Developer's Manual Ver. 1.14.0

Last update: Sep. 15, 2026

Send Printing Data

The procedure and the reference vary depending on the OS. Select the OS to display.

iOS Android


Understand the differences between these SDKs before migrating to StarXpand SDK.

StarPRNT SDK

The StarPRNT SDK APIs are synchronous APIs.
Connection to the printer and printing are performed as follows:

StarXpand SDK

Since some APIs are asynchronous, they must be executed within a task.



Comparison between the two SDKs

StarPRNT SDK StarXpand SDK
Asynchronous API Unsupported Supported
Printing data transmission/status check [1] Manually
beginCheckedBlock(), write(), endCheckedBlock()
Automatically
StarPrinter.print(command:)
Spooler function Unsupported Supported
Split transmission/retransmission [2] Manually retransmitted Automatically retransmitted

[1] In StarPRNT SDK, there is a need to use beginCheckedBlock(), write(), and endCheckedBlock() of the SMPort class to check the printing data transmission status and the pre- and post-transmission status. In StarXpand SDK, these operations are performed automatically by the StarPrinter.print(command:) method.

[2] In StarPRNT SDK, there is a need to check the size of data transmitted by SMPort.write() and manually retransmit any remaining data.
In StarXpand SDK, retransmission is performed automatically by StarPrinter.print(command:).



Process flow (sequence diagram)

For the process flow of each SDK, see the corresponding diagram below:

StarPRNT SDK
StarPRNT SDK
StarXpand SDK
StarXpand SDK


Refer to Supported API List for information on whether each API is supported in StarPRNT SDK and StarXpand SDK.

Understand the differences between these SDKs before migrating to StarXpand SDK.

StarPRNT SDK

The StarPRNT SDK APIs are synchronous APIs.
Connection to the printer and printing are performed as follows:

StarXpand SDK

Since some APIs are asynchronous, they must be executed within a task.



Comparison between the two SDKs

StarPRNT SDK StarXpand SDK
Asynchronous API Unsupported Supported
Printing data transmission/status check [1] Manually
beginCheckedBlock(), endCheckedBlock()
Automatically
StarPrinter.printAsync(command)
Spooler function Unsupported Supported
Split transmission/retransmission [2] Manually retransmitted Automatically retransmitted

[1] In StarPRNT SDK, there is a need to use beginCheckedBlock(), write(), and endCheckedBlock() of the StarIOPort class to check the printing data transmission status and the pre- and post-transmission status. In StarXpand SDK, these operations are performed automatically by the StarPrinter.printAsync(command) method.

[2] In StarPRNT SDK, there is a need to check the size of data transmitted by StarIOPort.writePort() and manually retransmit any remaining data.
In StarXpand SDK, retransmission is performed automatically by the StarPrinter.printAsync(command) method.



Process flow (sequence diagram)

For the process flow of each SDK, see the corresponding diagram below:

StarPRNT SDK
StarPRNT SDK
StarXpand SDK
StarXpand SDK


Refer to Supported API List for information on whether each API is supported in StarPRNT SDK and StarXpand SDK.