Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addService({PeripheralManagerSession? session, required MutableService service})
→ Future<void>
-
-
cancelConnection({required PeripheralSession session})
→ Future<void>
-
Cancels an active or pending connection to the peripheral.
-
cancelScan({Session? session})
→ Future<void>
-
Stops scanning for peripherals.
-
characteristics({required PeripheralSession session, required String serviceUuid})
→ Future<Iterable<Characteristic>>
-
A list of discovered characteristics offered by the service.
-
characteristicValueStream({required PeripheralSession session, required String serviceUuid, required String characteristicUuid})
→ Stream<Uint8List>
-
A stream of characteristic value changes.
-
clientState([Session? session])
→ Future<ClientState>
-
The platform-specific implementation of CentralManager.
The current state of the client.
-
clientStateStream([Session? session])
→ Stream<ClientState>
-
A stream of client state changes optionally filtered by the client
identifier.
-
connect({required PeripheralSession session})
→ Future<void>
-
Establishes a connection to the peripheral.
-
connectedPeripherals({Iterable<String> serviceUuids = const [], Session? session})
→ Future<Iterable<Peripheral>>
-
A list of connected peripherals identified by an offered service.
-
connectionState({required PeripheralSession session})
→ Future<ConnectionState>
-
The current connection state of the peripheral.
-
connectionStateStream({required PeripheralSession session})
→ Stream<ConnectionState>
-
A stream of connection state changes for the peripheral.
-
discoverCharacteristics({required PeripheralSession session, required String serviceUuid, Iterable<String>? characteristicUuids})
→ Future<void>
-
Discovers characteristics offered by the service.
-
discoverServices({required PeripheralSession session, Iterable<String>? serviceUuids})
→ Future<void>
-
Discovers services offered by the peripheral.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
observeCharacteristic({required PeripheralSession session, required String serviceUuid, required String characteristicUuid, bool observe = true})
→ Future<void>
-
Updates the observability of notifications and indications of
the characteristic.
-
peripheralManagerState([PeripheralManagerSession? session])
→ Future<ClientState>
-
"Peripheral Manager" APIs.
-
peripheralManagerStateStream([PeripheralManagerSession? session])
→ Stream<ClientState>
-
-
peripherals({Iterable<String> peripheralIdentifiers = const [], Session? session})
→ Future<Iterable<Peripheral>>
-
A list of known peripherals optionally filtered by their identifiers.
-
readCharacteristic({required PeripheralSession session, required String serviceUuid, required String characteristicUuid})
→ Future<Uint8List>
-
Reads the value of the characteristic.
-
readRequestStream([PeripheralManagerSession? session])
→ Stream<AttRequest>
-
-
Requests a read of the RSSI for the peripheral.
-
removeAllServices({PeripheralManagerSession? session})
→ Future<void>
-
-
removeService({PeripheralManagerSession? session, required String serviceUuid})
→ Future<void>
-
-
respondToRequest({PeripheralManagerSession? session, required int requestId, required AttResult result, Uint8List? value})
→ Future<void>
-
-
scan({Iterable<String>? forServices, Session? session})
→ Future<void>
-
Starts scanning for peripherals that are advertising services.
-
scanStream([Session? session])
→ Stream<ScanResult>
-
A stream of scan results optionally filtered by the client identifier.
-
serviceAddedStream([PeripheralManagerSession? session])
→ Stream<({String? error, String serviceUuid})>
-
-
services({required PeripheralSession session})
→ Future<Iterable<Service>>
-
A list of discovered services offered by the peripheral.
-
startAdvertising({PeripheralManagerSession? session, String? localName, Iterable<String>? serviceUuids})
→ Future<void>
-
-
stopAdvertising({PeripheralManagerSession? session})
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateValue({PeripheralManagerSession? session, required String serviceUuid, required String characteristicUuid, required Uint8List value})
→ Future<bool>
-
-
writeCharacteristic({required PeripheralSession session, required String serviceUuid, required String characteristicUuid, required Uint8List value, bool withoutResponse = false})
→ Future<void>
-
Writes the value of the characteristic.
-
writeRequestsStream([PeripheralManagerSession? session])
→ Stream<List<AttRequest>>
-