UniversalBlePlatform class abstract

Constructors

UniversalBlePlatform()

Properties

availabilityStream Stream<AvailabilityState>
no setter
bleConnectionUpdateStreamController → UniversalBleStreamController<({String deviceId, String? error, bool isConnected})>
final
hashCode int
The hash code for this object.
no setterinherited
onAvailabilityChange OnAvailabilityChange?
getter/setter pair
onConnectionChange OnConnectionChange?
getter/setter pair
onPairingStateChange OnPairingStateChange?
getter/setter pair
onScanResult OnScanResult?
getter/setter pair
onValueChange OnValueChange?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanStream Stream<BleDevice>
Streams
no setter

Methods

characteristicValueStream(String deviceId, String characteristicId) Stream<Uint8List>
connect(String deviceId, {Duration? connectionTimeout}) Future<void>
connectionStream(String deviceId) Stream<bool>
disableBluetooth() Future<bool>
disconnect(String deviceId) Future<void>
discoverServices(String deviceId) Future<List<BleService>>
enableBluetooth() Future<bool>
getBluetoothAvailabilityState() Future<AvailabilityState>
getConnectionState(String deviceId) Future<BleConnectionState>
getSystemDevices(List<String>? withServices) Future<List<BleDevice>>
isPaired(String deviceId) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pair(String deviceId) Future<bool>
pairingStateStream(String deviceId) Stream<bool>
readValue(String deviceId, String service, String characteristic, {Duration? timeout}) Future<Uint8List>
receivesAdvertisements(String deviceId) bool
requestMtu(String deviceId, int expectedMtu) Future<int>
setNotifiable(String deviceId, String service, String characteristic, BleInputProperty bleInputProperty) Future<void>
startScan({ScanFilter? scanFilter, PlatformConfig? platformConfig}) Future<void>
stopScan() Future<void>
toString() String
A string representation of this object.
inherited
unpair(String deviceId) Future<void>
updateAvailability(AvailabilityState state) → void
updateCharacteristicValue(String deviceId, String characteristicId, Uint8List value) → void
updateConnection(String deviceId, bool isConnected, [String? error]) → void
updatePairingState(String deviceId, bool isPaired) → void
updateScanResult(BleDevice bleDevice) → void
Update Handlers
writeValue(String deviceId, String service, String characteristic, Uint8List value, BleOutputProperty bleOutputProperty) Future<void>

Operators

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