Skip to content

StatusCallback

Description

Notifies the returned printer status.

Syntax

  
    event StatusCallbackHandler StatusCallback delegate void StatusCallbackHandler( ASB status )
  

Parameter

status

Printer status variable
The printer status is stored.
See "Printer Status List" for details of the printer status.

Remarks

    • To start the notification of the printer status, call SetStatusBack.
    • When the notification of the printer status is started by SetStatusBack, the event is raised with the current printer status.
    • Register the event handler to handle the response printer status before starting the notification of the printer status.
    • When the event handler is not registered, SetStatusBack fails.
    • Even when the printer status is received, the event is not raised when the printer status has not changed from when it was last received.
    • When reconnection to the printer is detected, the printer status is the status received last at the time.
    • Call the following APIs to stop this API.
      • CloseMonPrinter
      • CancelStatusBack
    • The following APIs cannot be called from the registered event handler.
      • CloseMonPrinter
      • SetStatusBack
      • CancelStatusBack
    • The time from receiving the printer status to raising the event is not guaranteed.
    • See "Printer Status List" for details of the printer status.