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.