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"
45 "description": "Fired when a pairing event occurs.",
48 "name": "pairingEvent",
49 "description": "A pairing event.",
50 "$ref": "PairingEvent"
62 "id": "PairingEventType",
63 "description": "Events that can occur during pairing. The method used for pairing varies depending on the capability of the two devices.",
66 "name": "requestPincode",
67 "description": "An alphanumeric PIN code is required to be entered by the user."
70 "name": "displayPincode",
71 "description": "Display a PIN code to the user."
74 "name": "requestPasskey",
75 "description": "A numeric passkey is required to be entered by the user."
78 "name": "displayPasskey",
79 "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."
82 "name": "keysEntered",
83 "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."
86 "name": "confirmPasskey",
87 "description": "Requests that a 6 digit passkey be displayed and the user confirms that both devies show the same passkey."
90 "name": "requestAuthorization",
91 "description": "Requests authorization for a pairing under the just-works model. It is up to the app to ask for user confirmation."
95 "description": "Pairing is completed"
101 "id": "PairingResponse",
102 "description": "Valid pairing responses.",
103 "enum": [ "confirm", "reject", "cancel"]
107 "id": "PairingEvent",
108 "description": "A pairing event received from a Bluetooth device.",
112 "$ref": "PairingEventType"
116 "$ref": "bluetooth.Device"
130 "name": "enteredKey",
137 "id": "NewAdapterState",
143 "description": "The human-readable name of the adapter."
149 "description": "Whether or not the adapter has power."
153 "name": "discoverable",
155 "description": "Whether the adapter is discoverable by other devices."
161 "id": "SetPairingResponseOptions",
165 "$ref": "bluetooth.Device",
166 "description": "The remote device to send the pairing response."
171 "$ref": "PairingResponse",
172 "description": "The response type"
178 "description": "A 1-16 character alphanumeric set in response to <code>requestPincode</code>."
184 "description": "An integer between 0-999999 set in response to <code>requestPasskey</code>."