FlutterBluetoothClassic class
Constructors
- FlutterBluetoothClassic.new()
-
Factory constructor to maintain a single instance of the class
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onConnectionChanged
→ Stream<
BluetoothConnectionState> -
no setter
-
onDataReceived
→ Stream<
BluetoothData> -
no setter
-
onStateChanged
→ Stream<
BluetoothState> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
String address) → Future< bool> - Connect to a device
-
disconnect(
) → Future< bool> - Disconnect from a device
-
dispose(
) → void - Dispose of resources
-
enableBluetooth(
) → Future< bool> - Request to enable Bluetooth
-
getPairedDevices(
) → Future< List< BluetoothDevice> > - Get paired devices
-
isBluetoothEnabled(
) → Future< bool> - Check if Bluetooth is enabled
-
isBluetoothSupported(
) → Future< bool> - Check if Bluetooth is supported on the device
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendData(
List< int> data) → Future<bool> - Send data to the connected device
-
sendString(
String message) → Future< bool> - Send string data to the connected device
-
startDiscovery(
) → Future< bool> - Start discovery for nearby Bluetooth devices
-
stopDiscovery(
) → Future< bool> - Stop discovery
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited