menu

BluetoothAdapter

import { BluetoothAdapter } from "destack:device/binding";

Bluetooth adapter.

language/library/src/device/binding/bluetooth.ds:87:96
1export struct BluetoothAdapter {2    id: string;3    name: string;4    isPowered: boolean;5    isScanning: boolean;6}

Members

id: string

Stable adapter identifier.

name: string

Host-visible adapter name.

isPowered: boolean

Whether the adapter is powered.

isScanning: boolean

Whether the adapter is currently scanning when known.