android_bluetooth

A clean Dart wrapper around Android's Bluetooth framework.

Status

Early scaffold with the first working adapter-level calls implemented.

Progress

This README is the working progress tracker for the package.

Reference inventory:

Implemented

  • x Standalone Flutter plugin package scaffold
  • x Android plugin wiring
  • x Dart entrypoint export surface
  • x AndroidBluetooth.isSupported()
  • x AndroidBluetooth.getAdapterState()
  • x AndroidBluetoothAdapterState enum

Next Up

  • Adapter state change stream
  • Adapter name
  • Bonded devices
  • Local adapter address behavior decision

Remaining Surface Areas

  • BluetoothManager
  • BluetoothAdapter
  • BluetoothDevice
  • BluetoothGatt
  • BluetoothGattCallback
  • BluetoothGattService
  • BluetoothGattCharacteristic
  • BluetoothGattDescriptor
  • BluetoothGattServer
  • BluetoothGattServerCallback
  • BluetoothLeScanner
  • ScanCallback
  • ScanResult
  • ScanRecord
  • ScanFilter
  • ScanSettings
  • BluetoothLeAdvertiser
  • AdvertiseData
  • AdvertiseSettings
  • AdvertisingSet
  • AdvertisingSetCallback
  • AdvertisingSetParameters
  • PeriodicAdvertisingParameters
  • BluetoothSocket
  • BluetoothServerSocket
  • Profile APIs such as BluetoothA2dp, BluetoothHeadset, and BluetoothLeAudio
  • Deprecated-but-public APIs that we choose to carry forward

Current API

final supported = await AndroidBluetooth.isSupported();
final state = await AndroidBluetooth.getAdapterState();

Libraries

android_bluetooth