You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[useBluetoothState(enabled: boolean = true)](#usebluetoothstate)|`BluetoothState`| Android, iOS | Hook that returns the current state of the bluetooth service. |
114
+
|[getState()](#getstate)|`Promise<BluetoothState>`| Android, iOS | Returns the current state of the bluetooth service. |
115
+
|[getStateSync()](#getstatesync)|`BluetoothState`| Android, iOS | Returns the current state synchronous of the bluetooth service. |
116
+
|[addListener(listener, emitCurrentState)](#addlistener)|`Subscription`| Android, iOS | Listen for bluetooth state changes. |
117
+
|[openSettings()](#opensettings)|`Promise<null>`| Android, iOS | Opens the bluetooth settings. Please see below for more details. |
118
+
|[requestToEnable()](#requesttoenable)|`Promise<void>`| Android | Show a dialog that allows the user to turn on Bluetooth. |
119
+
|[requestToDisable()](#requesttodisable)|`Promise<void>`| Android | Show a dialog that allows the user to turn off Bluetooth. |
120
120
121
121
---
122
122
123
-
### useBluetoothState()
123
+
### useBluetoothState(enabled: boolean = true)
124
124
125
125
Hook that returns the current state of the bluetooth service.
0 commit comments