flutter_bluetooth_plugin_models library
Flutter 蓝牙插件 API 共用的中文模型、枚举和转换函数。
Classes
- BluetoothAdapterInfo
- 蓝牙适配器信息和能力摘要。
- BluetoothAdvertisementData
- BLE 广播数据。
- BluetoothAdvertisingSettings
- BLE 广播设置。
- BluetoothAdvertisingStateEvent
- BLE 广播状态事件。
- BluetoothBondStateEvent
- Android 配对/绑定状态事件。
- BluetoothCharacteristicValue
- GATT 特征值事件。
- BluetoothClassicConnectionEvent
- Classic Bluetooth 连接状态事件。
- BluetoothClassicDataEvent
- Classic Bluetooth 数据事件。
- BluetoothConnectionStateEvent
- BLE 连接状态事件。
- BluetoothDescriptorValue
- GATT 描述符值事件。
- BluetoothDevice
- 蓝牙设备摘要信息。
- BluetoothGattCharacteristic
- GATT 特征。
- BluetoothGattDescriptor
- GATT 描述符。
- BluetoothGattServerRequest
- 本地 GATT Server 请求/状态事件。
- BluetoothGattService
- GATT 服务。
- BluetoothMtuEvent
- MTU 更新事件。
- BluetoothPhyEvent
- BLE PHY 事件。
- BluetoothRssiEvent
- RSSI 读取事件。
- BluetoothScanResult
- 扫描结果。
Enums
- BluetoothAdapterState
- 蓝牙适配器状态。
- BluetoothAdvertisingMode
- BLE 广播模式。
- BluetoothBondState
- Android 配对/绑定状态。
- BluetoothConnectionPriority
- Android BLE 连接优先级。
- BluetoothConnectionState
- BLE 或 Classic 连接状态。
- BluetoothPermissionStatus
- 蓝牙权限状态。
- BluetoothPhy
- BLE PHY 类型。
- BluetoothScanMode
- 扫描模式。
- BluetoothTxPowerLevel
- BLE 广播发射功率。
- BluetoothWriteType
- GATT 特征写入类型。
Functions
-
bluetoothAdapterStateFromString(
String? value) → BluetoothAdapterState - 将原生字符串转换为 BluetoothAdapterState。
-
bluetoothBondStateFromString(
String? value) → BluetoothBondState - 将原生字符串转换为 BluetoothBondState。
-
bluetoothConnectionStateFromString(
String? value) → BluetoothConnectionState - 将原生字符串转换为 BluetoothConnectionState。
-
bluetoothPermissionStatusFromString(
String? value) → BluetoothPermissionStatus - 将原生字符串转换为 BluetoothPermissionStatus。
-
bluetoothPhyFromString(
String? value) → BluetoothPhy - 将原生字符串转换为 BluetoothPhy。