| OLD | NEW |
| 1 <h1>Manifest - Bluetooth</h1> | 1 <h1>Manifest - Bluetooth</h1> |
| 2 | 2 |
| 3 <p> | 3 <p> |
| 4 The <code>bluetooth</code> manifest property declares which permissions are | 4 The <code>bluetooth</code> manifest property declares which permissions are |
| 5 available for the $(ref:bluetooth) API. | 5 available for the $(ref:bluetooth) API. |
| 6 </p> | 6 </p> |
| 7 | 7 |
| 8 <h2 id="manifest">Sample manifest.json</h2> | 8 <h2 id="manifest">Sample manifest.json</h2> |
| 9 <pre data-filename="manifest.json"> | 9 <pre data-filename="manifest.json"> |
| 10 { | 10 { |
| 11 "name": "My Bluetooth {{platform}}", | 11 "name": "My Bluetooth {{platform}}", |
| 12 "bluetooth": { | 12 "bluetooth": { |
| 13 // Permission for chrome.bluetooth.addProfile: | 13 // Permission for chrome.bluetoothSocket: |
| 14 // The application is allowed to communicate with devices | 14 // The application is allowed to communicate with devices |
| 15 // using the protocols, profiles, or services identified by | 15 // using the protocols, profiles, or services identified by |
| 16 // the UUIDs 0x1105 and 0x1106. | 16 // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API. |
| 17 "uuids": [ "1105", "1106" ] | 17 "uuids": [ "1105", "1106" ], |
| 18 "socket": true |
| 18 }, | 19 }, |
| 19 ... | 20 ... |
| 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 } |
| 21 </pre> | 37 </pre> |
| 22 | 38 |
| 23 <section> | 39 <section> |
| 24 <h2 id="reference">Reference</h2> | 40 <h2 id="reference">Reference</h2> |
| 25 <p class="api_reference"> | 41 <p class="api_reference"> |
| 26 {{+partials.type type:apis.manifestTypes.byName.bluetooth/}} | 42 {{+partials.type type:apis.manifestTypes.byName.bluetooth/}} |
| 27 </p> | 43 </p> |
| 28 </section> | 44 </section> |
| OLD | NEW |