مانیفست - بلوتوث

ویژگی مانیفست bluetooth اعلام می کند که کدام مجوزها برای API بلوتوث در دسترس هستند.

نمونه manifest.json

{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothSocket:
    // The application is allowed to communicate with devices
    // using the protocols, profiles, or services identified by
    // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
    "uuids": [ "1105", "1106" ],
    "socket": true
  },
  ...
}
{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothLowEnergy:
    // The application is allowed to communicate with devices
    // using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
    // using the BluetoothLowEnergy API.
    "uuids": [ "180D", "1809", "180F" ],
    "low_energy": true
  },
  ...
}

ارجاع

  • uuids (آرایه از رشته) - اختیاری

    ویژگی uuids manifest لیستی از پروتکل‌ها، نمایه‌ها و سرویس‌هایی را که یک برنامه می‌تواند با استفاده از آنها ارتباط برقرار کند، اعلام می‌کند.

  • socket (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث سوکت استفاده کند

  • low_energy (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث LowEnergy استفاده کند

  • peripheral (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد تا از عملکردهای تبلیغاتی در بلوتوث LowEnergy API استفاده کند.

،

ویژگی مانیفست bluetooth اعلام می کند که کدام مجوزها برای API بلوتوث در دسترس هستند.

نمونه manifest.json

{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothSocket:
    // The application is allowed to communicate with devices
    // using the protocols, profiles, or services identified by
    // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
    "uuids": [ "1105", "1106" ],
    "socket": true
  },
  ...
}
{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothLowEnergy:
    // The application is allowed to communicate with devices
    // using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
    // using the BluetoothLowEnergy API.
    "uuids": [ "180D", "1809", "180F" ],
    "low_energy": true
  },
  ...
}

ارجاع

  • uuids (آرایه از رشته) - اختیاری

    ویژگی uuids manifest لیستی از پروتکل‌ها، نمایه‌ها و سرویس‌هایی را که یک برنامه می‌تواند با استفاده از آنها ارتباط برقرار کند، اعلام می‌کند.

  • socket (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث سوکت استفاده کند

  • low_energy (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث LowEnergy استفاده کند

  • peripheral (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد تا از عملکردهای تبلیغاتی در بلوتوث LowEnergy API استفاده کند.

،

ویژگی مانیفست bluetooth اعلام می کند که کدام مجوزها برای API بلوتوث در دسترس هستند.

نمونه manifest.json

{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothSocket:
    // The application is allowed to communicate with devices
    // using the protocols, profiles, or services identified by
    // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
    "uuids": [ "1105", "1106" ],
    "socket": true
  },
  ...
}
{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothLowEnergy:
    // The application is allowed to communicate with devices
    // using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
    // using the BluetoothLowEnergy API.
    "uuids": [ "180D", "1809", "180F" ],
    "low_energy": true
  },
  ...
}

ارجاع

  • uuids (آرایه از رشته) - اختیاری

    ویژگی uuids manifest لیستی از پروتکل‌ها، نمایه‌ها و سرویس‌هایی را که یک برنامه می‌تواند با استفاده از آنها ارتباط برقرار کند، اعلام می‌کند.

  • socket (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث سوکت استفاده کند

  • low_energy (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد از API بلوتوث LowEnergy استفاده کند

  • peripheral (بولی) - اختیاری

    اگر true ، به یک برنامه اجازه می‌دهد تا از عملکردهای تبلیغاتی در بلوتوث LowEnergy API استفاده کند.