HrmFlutterApi class abstract
API for native platforms to deliver HRM events back to Flutter
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
-
onHrmConnectionStateChanged(
String uuid, ConnectionState state) → void - Called when an HRM device's connection state changes
-
onHrmDevicesFound(
List< BluetoothDevice> devices) → void - Called as HRM devices are discovered during a scan
-
onHrmHeartRateReceived(
int heartRate) → void - Called when a heart rate measurement is received from the connected HRM
-
onHrmRunningSpeedCadenceReceived(
double speedMps, int cadenceSpm) → void - Called when a Running Speed and Cadence measurement is received from the connected HRM (Stage 2). Only fires for devices that also expose the RSC Service (0x1814); parsed natively from the RSC Measurement characteristic (0x2A53).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
setUp(
HrmFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) → void
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>