PMPrinterGetState(_:_:)
Obtains the current state of the print queue for a printer.
Declaration
func PMPrinterGetState(_ printer: PMPrinter, _ state: UnsafeMutablePointer<PMPrinterState>) -> OSStatusParameters
- printer:
The printer whose queue state you want to obtain.
- state:
A pointer to your
PMPrinterStatevariable. On return, the variable contains a constant that indicates the current state of the print queue for the specified printer. Supported values are:kPMPrinterIdle(queue is idle)kPMPrinterProcessing(queue is processing a job)kPMPrinterStopped(queue is stopped)
See Pmprinterstate for a complete description of these constants.
Return Value
A result code. See Result Codes.
See Also
Accessing Information About a Printer
PMPrinterCopyDescriptionURL(_:_:_:)PMPrinterCopyDeviceURI(_:_:)PMPrinterCopyHostName(_:_:)PMPrinterCopyPresets(_:_:)PMPrinterGetCommInfo(_:_:_:)PMPrinterGetDriverCreator(_:_:)PMPrinterGetID(_:)PMPrinterGetLocation(_:)PMPrinterGetMakeAndModelName(_:_:)PMPrinterGetMimeTypes(_:_:_:)PMPrinterGetName(_:)PMPrinterGetOutputResolution(_:_:_:)PMPrinterSetOutputResolution(_:_:_:)PMPrinterGetPaperList(_:_:)PMPrinterGetPrinterResolutionCount(_:_:)PMPrinterGetIndexedPrinterResolution(_:_:_:)PMPrinterSetDefault(_:)PMPrinterIsDefault(_:)PMPrinterIsFavorite(_:)PMPrinterIsPostScriptCapable(_:)PMPrinterIsPostScriptPrinter(_:_:)PMPrinterIsRemote(_:_:)