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 → BBObservable<BBAuthorization>
no setter
devices → BBObservable<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 → BBObservable<bool>
no setter
scanResultsStream → Stream<BBScanResult>
no setter
state → BBObservable<BBState>
no setter
supportsExtended → bool
no setter

Methods

authorizationOpenSettings() → Future<void>
authorizationRequest() → Future<void>
deviceCharacteristicData(String id, String serviceId, String characteristicId) → BBObservable<Uint8List>
deviceCharacteristicIsNotifying(String id, String serviceId, String characteristicId) → BBObservable<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) → BBObservable<BBDeviceConnectionStatus>
deviceDisconnect(String id) → Future<void>
deviceDiscoverServices(String id) → Future<void>
deviceMtu(String id) → BBObservable<int>
deviceRequestMtu(String id, int value) → Future<int>
deviceServices(String id) → BBObservable<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