Print_PrinterInfo
typedef struct {...} Print_PrinterInfo
Overview
Defines a struct for the printer information.
Since: 12
Related module: OH_Print
Header file: ohprint.h
Summary
Member Variables
| Name | Description |
|---|---|
| Print_PrinterState printerState | Printer state. |
| Print_PrinterCapability capability | Printer capability. |
| Print_DefaultValue defaultValue | Default property value of the printer. |
| bool isDefaultPrinter | Default printer. |
| char *printerId | Printer ID. |
| char *printerName | Printer name. |
| char *description | Printer description. |
| char *location | Printer location. |
| char *makeAndModel | Brand and model of the printer. |
| char *printerUri | Printer URI. |
| char *detailInfo | Details in JSON format. The supported keys are as follows: - printerAlias: string type, indicating the printer alias. Since: 24 - vendorId: int type, indicating the USB vendor ID of the printer. Since: 12 - productId: int type, indicating the USB product ID of the printer. Since: 12 - protocol: string array, indicating the list of protocols detected for the printer. Since: 24 - ipp: string type, indicating the printer URI for the detected IPP protocol. Since: 24 - ipps: string type, indicating the printer URI for the detected IPPS protocol. Since: 24 - lpd: string type, indicating the printer URI for the detected LPD protocol. Since: 24 - socket: string type, indicating the printer URI for the detected Socket protocol. Since: 24 |