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.
Manifest - USB Printers
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) - requiredA 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 ofproductId
orinterfaceClass
may be provided.