BluetoothPlugin.open()
PluginBluetoothPluginopenLess than 1 minute
Opens the BluetoothPlugin adapter.
Opening the BluetoothPlugin adapter is required before accessing any Bluetooth devices.
BluetoothPlugin.open()
Parameters
- None
Returns
- A Promise that resolves to a BluetoohOpenResponse object.
Example
import { bluetoothPlugin } from "@plaoc/plugins";
bluetoothPlugin.open()
.then(res => {
if(res.success) {
// Bluetooth opened successfully
} else {
// Failed to open Bluetooth
}
})
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
open | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7