bluetooth
मेनिफ़ेस्ट प्रॉपर्टी से यह पता चलता है कि ब्लूटूथ एपीआई के लिए कौनसी अनुमतियां उपलब्ध हैं.
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
मेनिफ़ेस्ट प्रॉपर्टी में ऐसे प्रोटोकॉल, प्रोफ़ाइलों, और सेवाओं की सूची बताई जाती है जिनका इस्तेमाल करके ऐप्लिकेशन कम्यूनिकेशन कर सकता है.socket
(बूलियन) - ज़रूरी नहींअगर
true
, ऐप्लिकेशन को bluetoothSocket API का इस्तेमाल करने की अनुमति देता हैlow_energy
(बूलियन) - ज़रूरी नहींअगर
true
, तो किसी ऐप्लिकेशन को bluetoothLowEnergy API का इस्तेमाल करने की अनुमति देता हैperipheral
(बूलियन) - ज़रूरी नहींअगर
true
, तो किसी ऐप्लिकेशन को bluetoothLowEnergy एपीआई में विज्ञापन की सुविधा इस्तेमाल करने की अनुमति देता है