3 "namespace": "bluetoothPrivate",
4 "description": " Use the <code>chrome.bluetoothPrivate</code> API to control the Bluetooth\n adapter state and handle device pairing.",
6 "implemented_in": "extensions/browser/api/bluetooth/bluetooth_private_api.h"
10 "name": "setAdapterState",
12 "description": "Changes the state of the Bluetooth adapter.",
15 "name": "adapterState",
16 "$ref": "NewAdapterState"
26 "name": "setPairingResponse",
31 "$ref": "SetPairingResponseOptions"
41 "name": "disconnectAll",
43 "description": "Tears down all connections to the given device.",
46 "name": "deviceAddress",
57 "name": "setDiscoveryFilter",
59 "description": "Set or clear discovery filter",
62 "name": "discoveryFilter",
63 "$ref": "DiscoveryFilter"
78 "description": "Fired when a pairing event occurs.",
81 "name": "pairingEvent",
82 "description": "A pairing event.",
83 "$ref": "PairingEvent"
95 "id": "PairingEventType",
96 "description": "Events that can occur during pairing. The method used for pairing varies depending on the capability of the two devices.",
99 "name": "requestPincode",
100 "description": "An alphanumeric PIN code is required to be entered by the user."
103 "name": "displayPincode",
104 "description": "Display a PIN code to the user."
107 "name": "requestPasskey",
108 "description": "A numeric passkey is required to be entered by the user."
111 "name": "displayPasskey",
112 "description": "Display a zero padded 6 digit numeric passkey that the user entered on the remote device. This event may occur multiple times during pairing to update the entered passkey."
115 "name": "keysEntered",
116 "description": "The number of keys inputted by the user on the remote device when entering a passkey. This event may be called multiple times during pairing to update the number of keys inputted."
119 "name": "confirmPasskey",
120 "description": "Requests that a 6 digit passkey be displayed and the user confirms that both devies show the same passkey."
123 "name": "requestAuthorization",
124 "description": "Requests authorization for a pairing under the just-works model. It is up to the app to ask for user confirmation."
128 "description": "Pairing is completed"
134 "id": "PairingResponse",
135 "description": "Valid pairing responses.",
136 "enum": [ "confirm", "reject", "cancel"]
140 "id": "PairingEvent",
141 "description": "A pairing event received from a Bluetooth device.",
145 "$ref": "PairingEventType"
149 "$ref": "bluetooth.Device"
163 "name": "enteredKey",
170 "id": "NewAdapterState",
176 "description": "The human-readable name of the adapter."
182 "description": "Whether or not the adapter has power."
186 "name": "discoverable",
188 "description": "Whether the adapter is discoverable by other devices."
194 "id": "SetPairingResponseOptions",
198 "$ref": "bluetooth.Device",
199 "description": "The remote device to send the pairing response."
204 "$ref": "PairingResponse",
205 "description": "The response type"
211 "description": "A 1-16 character alphanumeric set in response to <code>requestPincode</code>."
217 "description": "An integer between 0-999999 set in response to <code>requestPasskey</code>."
222 "id": "TransportType",
224 "enum": [ "le", "bredr", "dual"]
228 "id": "DiscoveryFilter",
231 "$ref": "TransportType",
234 "description": "Transport type."
240 {"type": "string", "name": "uuid of service"},
241 {"type": "array", "items": {"type": "string"}, "name": "array of uuids"}
248 "description": "RSSI ranging value. Only devices with RSSI higher than this value will be reported."
254 "description": "Pathloss ranging value. Only devices with pathloss lower than this value will be reported."