Interface BluetoothOptions

Bluetooth Options interface

Hierarchy

  • BluetoothOptions

Properties

allowAllDevices?: boolean

Optional flag to automatically allow all devices

deviceFound?: ((device: BluetoothDevice, selectFn: (() => void)) => boolean)

Type declaration

    • (device: BluetoothDevice, selectFn: (() => void)): boolean
    • A device found callback function to allow the user to select a device

      Parameters

      • device: BluetoothDevice
      • selectFn: (() => void)
          • (): void
          • Returns void

      Returns boolean

referringDevice?: BluetoothDevice

An optional referring device

scanTime?: number

The amount of seconds to scan for the device (default is 10)