Skip to content

didStatusChange

Description

A method defined by the SIISLP800PrinterManagerDelegate protocol.
This method is invoked by the library whenever the printer’s status changes.
The updated status value is passed as an argument, allowing the application to handle the status change appropriately.

Syntax

optional func didStatusChange(_ printerManager: SIISLP800PrinterManager, status: Int)

Parameter

printerManager

Specify the SIISLP800PrinterManager instance.

status

The printer status value after the change.
If communication is lost, the value 0x80000000 is delivered.

Behavior

  • Invoked whenever the printer reports a status change.
  • Notifications occur for each change, such as connection loss → recovery → loss again.
  • Status notifications become active after a successful connect(…) call.
  • No notifications occur after disconnect() is called.

Note

  • Status value definitions are described in the getStatus() API documentation.
  • Avoid calling other SIISLP800PrinterManager APIs from within the delegate methods.