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
可 。