BlueBreezePlatform class abstract

The federated-plugin extension point BlueBreeze's public API (BBManager, BBDevice, BBCharacteristic) delegates to. MethodChannelBlueBreeze is the default implementation, talking to the native Android/iOS SDKs over a MethodChannel.

Most apps never touch this directly -- it exists so alternative implementations (other platform packages, or a mock for testing) can be swapped in via instance.

Inheritance
  • Object
  • PlatformInterface
  • BlueBreezePlatform
Implementers

Constructors

BlueBreezePlatform()

Properties

authorizationStatus BBAuthorization
no setter
authorizationStatusStream Stream<BBAuthorization>
no setter
devices Map<String, BBDevice>
no setter
devicesStream Stream<Map<String, BBDevice>>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanEnabled bool
no setter
scanEnabledStream Stream<bool>
no setter
scanResultsStream Stream<BBScanResult>
no setter
state BBState
no setter
stateStream Stream<BBState>
no setter
supportsExtended bool
no setter

Methods

authorizationOpenSettings() Future<void>
authorizationRequest() Future<void>
deviceCharacteristicData(String id, String serviceId, String characteristicId) Uint8List
deviceCharacteristicDataStream(String id, String serviceId, String characteristicId) Stream<Uint8List>
deviceCharacteristicNotifyEnabled(String id, String serviceId, String characteristicId) bool
deviceCharacteristicNotifyEnabledStream(String id, String serviceId, String characteristicId) Stream<bool>
deviceCharacteristicRead(String id, String serviceId, String characteristicId) Future<Uint8List>
deviceCharacteristicSubscribe(String id, String serviceId, String characteristicId) Future<void>
deviceCharacteristicUnsubscribe(String id, String serviceId, String characteristicId) Future<void>
deviceCharacteristicWrite(String id, String serviceId, String characteristicId, Uint8List value, bool withResponse) Future<void>
deviceConnect(String id) Future<void>
deviceConnectionStatus(String id) BBDeviceConnectionStatus
deviceConnectionStatusStream(String id) Stream<BBDeviceConnectionStatus>
deviceDisconnect(String id) Future<void>
deviceDiscoverServices(String id) Future<void>
deviceMtu(String id) int
deviceMtuStream(String id) Stream<int>
deviceRequestMtu(String id, int value) Future<int>
deviceServices(String id) List<BBService>
deviceServicesStream(String id) Stream<List<BBService>>
handleHotReload() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseDevice(String id) → void
scanStart({List<String>? services}) Future<void>
scanStop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance BlueBreezePlatform
The active implementation every BBManager/BBDevice/BBCharacteristic call delegates to. Defaults to MethodChannelBlueBreeze; set this to a different implementation (e.g. a mock) before exercising the public API in tests.
getter/setter pair