OLD | NEW |
(Empty) | |
| 1 <h1>Manifest - USB Printers</h1> |
| 2 |
| 3 <p> |
| 4 The <code>usbPrinters</code> manifest property declares which USB printers are s
upported by an app using the $(ref:printerProvider) API. |
| 5 </p> |
| 6 |
| 7 <h2 id="manifest">Sample manifest.json</h2> |
| 8 <pre data-filename="manifest.json"> |
| 9 { |
| 10 "name": "My printer {{platform}}", |
| 11 "usb_printers": { |
| 12 "filters": [ |
| 13 // This app can print to the Nexus One and any printer made by Google. |
| 14 { "vendorId": 6353, "productId": 19985 }, |
| 15 { "vendorId": 6353, "interfaceClass": 7 } |
| 16 ] |
| 17 }, |
| 18 ... |
| 19 } |
| 20 </pre> |
| 21 |
| 22 <section> |
| 23 <h2 id="reference">Reference</h2> |
| 24 <p class="api_reference"> |
| 25 {{+partials.manifest_type |
| 26 type:apis.apps.extensionsManifestTypes.byName.UsbPrinters/}} |
| 27 </p> |
| 28 </section> |
OLD | NEW |