usbPrinters
清单属性声明了使用
printerProvider API。
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 }
]
},
...
}
参考
filters
(对象数组)- 必需与支持的设备匹配的 USB 设备过滤器列表。设备只需匹配 提供的过滤条件。必须提供
vendorId
,且只能选择productId
和interfaceClass
中的一个 资源。