Skip to main content

BluetoothPlugin.open()

BFChainPluginBluetoothPluginopenLess than 1 minute

Opens the BluetoothPlugin adapter.
Opening the BluetoothPlugin adapter is required before accessing any Bluetooth devices.

BluetoothPlugin.open()

Parameters

  • None

Returns

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/EventAndroidiOSDesktop-DevDesktop
openX

See Also

BluetoothPlugin

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7