매니페스트 - USB 프린터

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 중 하나만 제공할 수 있습니다.