Manifest - USB Printers

Published on

Caution

Important: Chrome will be removing support for Chrome Apps on all platforms. Chrome browser and the Chrome Web Store will continue to support extensions. Read the announcement and learn more about migrating your app.

The usbPrinters manifest property declares which USB printers are supported by an app using the printerProvider API.

Sample manifest.json

{
"name": "My printer app",
"usb_printers": {
"filters": [
// This app can print to the Nexus One and any printer made by Google.
{ "vendorId": 6353, "productId": 19985 },
{ "vendorId": 6353, "interfaceClass": 7 }
]
},
...
}

Reference

  • filters (array of object) - required

    A list of USB device filters matching supported devices. A device only needs to match one of the provided filters. A vendorId is required and only one of productId or interfaceClass may be provided.

Published on Improve article

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.