usbPrinters 資訊清單屬性會宣告應用程式使用 printerProvider API 支援哪些 USB 印表機。
範例 manifest.json
{ "name":"My printer app", "usb_printers":{ "filters":[ //This app can print to the NexusOne and any printer made by Google. {"vendorId":6353,"productId":19985}, {"vendorId":6353,"interfaceClass":7} ] }, ... }
參考資料
filters (物件陣列) - 必要
符合支援裝置的 USB 裝置篩選器清單。裝置只需要符合提供的篩選器之一。必須提供 vendorId,且只能提供其中一個 productId 或 interfaceClass。