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
のいずれか一方のみ指定できます。 提供されません。