FlutterBleCentral class
Constructors
- FlutterBleCentral()
-
Singleton factory
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isAdvertising
→ Future<
bool> -
Returns
true
if advertising or false if not advertisingno setter -
isSupported
→ Future<
bool> -
Returns
true
if advertising over BLE is supportedno setter -
onPeripheralStateChanged
→ Stream<
CentralState> -
Returns Stream of state.
no setter
- onRawScanResult → Stream
-
Returns Stream of MTU updates.
no setter
-
onScanError
→ Stream<
int> ? -
Returns Stream of MTU updates.
no setter
-
onScanResult
→ Stream<
ScanResult> -
Returns Stream of MTU updates.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
enableBluetooth(
{bool askUser = true}) → Future< bool> - Stop advertising
-
handleData(
dynamic data, EventSink sink) → void - Parses the received data.
-
hasPermission(
) → Future< BluetoothCentralState> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< void> -
openBluetoothSettings(
) → Future< void> -
requestPermission(
) → Future< BluetoothCentralState> -
start(
{ScanSettings? scanSettings}) → Future< BluetoothCentralState> -
Start advertising. Takes
AdvertiseData
as an input. -
stop(
) → Future< BluetoothCentralState> - Stop advertising
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited