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",
61 "description": "Fired when a pairing event occurs.",
64 "name": "pairingEvent",
65 "description": "A pairing event.",
66 "$ref": "PairingEvent"
78 "id": "PairingEventType",
79 "description": "Events that can occur during pairing. The method used for pairing varies depending on the capability of the two devices.",
82 "name": "requestPincode",
83 "description": "An alphanumeric PIN code is required to be entered by the user."
86 "name": "displayPincode",
87 "description": "Display a PIN code to the user."
90 "name": "requestPasskey",
91 "description": "A numeric passkey is required to be entered by the user."
94 "name": "displayPasskey",
95 "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."
98 "name": "keysEntered",
99 "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."
102 "name": "confirmPasskey",
103 "description": "Requests that a 6 digit passkey be displayed and the user confirms that both devies show the same passkey."
106 "name": "requestAuthorization",
107 "description": "Requests authorization for a pairing under the just-works model. It is up to the app to ask for user confirmation."
111 "description": "Pairing is completed"
117 "id": "PairingResponse",
118 "description": "Valid pairing responses.",
119 "enum": [ "confirm", "reject", "cancel"]
123 "id": "PairingEvent",
124 "description": "A pairing event received from a Bluetooth device.",
128 "$ref": "PairingEventType"
132 "$ref": "bluetooth.Device"
146 "name": "enteredKey",
153 "id": "NewAdapterState",
159 "description": "The human-readable name of the adapter."
165 "description": "Whether or not the adapter has power."
169 "name": "discoverable",
171 "description": "Whether the adapter is discoverable by other devices."
177 "id": "SetPairingResponseOptions",
181 "$ref": "bluetooth.Device",
182 "description": "The remote device to send the pairing response."
187 "$ref": "PairingResponse",
188 "description": "The response type"
194 "description": "A 1-16 character alphanumeric set in response to <code>requestPincode</code>."
200 "description": "An integer between 0-999999 set in response to <code>requestPasskey</code>."