Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / templates / articles / manifest / bluetooth.html
1 <h1>Manifest - Bluetooth</h1>
2
3 <p>
4 The <code>bluetooth</code> manifest property declares which permissions are
5 available for the $(ref:bluetooth) API.
6 </p>
7
8 <h2 id="manifest">Sample manifest.json</h2>
9 <pre data-filename="manifest.json">
10 {
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
19   },
20   ...
21 }
22 </pre>
23
24 <pre data-filename="manifest.json">
25 {
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
34   },
35   ...
36 }
37 </pre>
38
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>