BluetoothPlugin.close()
PluginBluetoothPlugincloseLess than 1 minute
Closes the BluetoothPlugin adapter.
BluetoothPlugin.close()
Parameters
- None
Returns
- A Promise that resolves to a BluetoothCloseResponse object.
Example
import { bluetoothPlugin } from "@plaoc/plugins";
bluetoothPlugin.close()
.then(res => {
if(res.success) {
// Bluetooth closed successfully
} else {
// Failed to close Bluetooth
}
})
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
close | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7