RollaBluetoothFlutterApi class abstract
API for native platforms to send data back to Flutter
This interface defines callbacks that the native platform can invoke to notify Flutter of Bluetooth events and data updates.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBluetoothStateChanged(
BluetoothState state) → void - Called when the Bluetooth adapter state changes
-
onConnectionStateChanged(
String uuid, ConnectionState state) → void - Called when a device's connection state changes
-
onDevicesFound(
List< BluetoothDevice> devices) → void - Called when new devices are discovered during scanning
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
setUp(
RollaBluetoothFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) → void
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>