Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / articles / manifest / bluetooth.html
blob22ce964616b833abf6da40fd18580870f4c18e21
1 <h1>Manifest - Bluetooth</h1>
3 <p>
4 The <code>bluetooth</code> manifest property declares which permissions are
5 available for the $(ref:bluetooth) API.
6 </p>
8 <h2 id="manifest">Sample manifest.json</h2>
9 <pre data-filename="manifest.json">
11 "name": "My Bluetooth {{platform}}",
12 "bluetooth": {
13 // Permission for chrome.bluetoothSocket:
14 // The application is allowed to communicate with devices
15 // using the protocols, profiles, or services identified by
16 // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
17 "uuids": [ "1105", "1106" ],
18 "socket": true
20 ...
22 </pre>
24 <pre data-filename="manifest.json">
26 "name": "My Bluetooth {{platform}}",
27 "bluetooth": {
28 // Permission for chrome.bluetoothLowEnergy:
29 // The application is allowed to communicate with devices
30 // using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
31 // using the BluetoothLowEnergy API.
32 "uuids": [ "180D", "1809", "180F" ],
33 "low_energy": true
35 ...
37 </pre>
39 <section>
40 <h2 id="reference">Reference</h2>
41 <p class="api_reference">
42 {{+partials.manifest_type
43 type:apis.apps.extensionsManifestTypes.byName.bluetooth/}}
44 </p>
45 </section>