BleKeeperPlatform class abstract

Platform interface for ble_keeper.

The default implementation is PigeonBleKeeper. Tests and alternative implementations can replace instance.

Inheritance
  • Object
  • PlatformInterface
  • BleKeeperPlatform

Constructors

BleKeeperPlatform()
Constructs a BleKeeperPlatform.

Properties

events → Stream<KeeperEvent>
See BleKeeper.events.
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

Methods

activeDeviceIds() → Future<List<String>>
See BleKeeper.activeDeviceIds.
clearLog() → Future<void>
See BleKeeper.clearLog.
exportLog() → Future<String>
See BleKeeper.exportLog.
keepConnected({required String deviceId, required List<CharacteristicRef> subscribe, AndroidOptions? android, IosOptions? ios}) → Future<void>
See BleKeeper.keepConnected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String deviceId, CharacteristicRef characteristic) → Future<Uint8List>
See BleKeeper.read.
registerBackgroundHandler(BackgroundHandler handler) → Future<void>
See BleKeeper.registerBackgroundHandler.
stop(String deviceId) → Future<void>
See BleKeeper.stop.
toString() → String
A string representation of this object.
inherited
write(String deviceId, CharacteristicRef characteristic, Uint8List value, {bool withResponse = true}) → Future<void>
See BleKeeper.write.

Operators

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

Static Properties

instance ↔ BleKeeperPlatform
The current implementation. Defaults to PigeonBleKeeper.
getter/setter pair