MethodChannelLuckRingPlugin class
- Inheritance
-
- Object
- PlatformInterface
- LuckRingPluginPlatform
- MethodChannelLuckRingPlugin
Constructors
Properties
- eventChannel → EventChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanResults
→ Stream<
List< ScanDevice> > -
Stream of discovered devices.
no setteroverride
Methods
-
connect(
String address) → Future< bool> -
Connects to a device by its MAC address.
override
-
disconnect(
) → Future< void> -
Disconnects from the current device.
override
-
getHealthData(
) → Future< HealthData> -
Fetches all health data from the connected ring. Triggers sync and waits
for data (up to ~30s). Ensure device is connected before calling.
override
-
getPlatformVersion(
) → Future< String?> -
Returns the platform version string.
override
-
init(
) → Future< void> -
Initializes the SDK.
override
-
isConnected(
) → Future< bool> -
Returns true if a device is currently connected.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startScan(
{int timeoutMs = 12000}) → Future< void> -
Starts scanning for nearby devices.
override
-
stopScan(
) → Future< void> -
Stops the current scan.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited