usbPrinters
資訊清單屬性會使用 printerProvider API 宣告應用程式支援哪些 USB 印表機。
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
其中之一。