aidlab_sdk library

Classes

ActivityEvent
The wearer was doing an activity over a period.
AidlabManager
High-level scanner and device factory for Flutter applications.
AidlabManagerDelegate
Callbacks for Bluetooth scanning lifecycle events.
AidlabScanner
Abstraction for scanning Aidlab devices.
AidlabTransport
Abstraction for device transport commands.
Device
A connected Aidlab device. Provides data streams and control commands.
DeviceDelegate
Callbacks delivering live and historical data as well as state changes.
DeviceEvent
An event delivered through DeviceDelegate.didReceiveEvent, which happened at a moment or over a period.
EcgEvent
One WFDB annotation of the device's ECG analysis.
ExerciseEvent
The SDK detected an exercise.
PressureWearStateEvent
The wear state of the nasal cannula (Aidmed One) changed.
ReactiveBleAidlabTransport
Default transport based on flutter_reactive_ble.
SleepEvent
A period of a night analyzed by the device, reported once the night closes. A night is its periods: sleep onset is the start of its first period and the final wake is the end of its last.
UserEvent
The wearer marked a moment, for example with the device button.
WearStateEvent
The wear state of the chest electrodes changed.

Enums

ActivityType
Detected user activity type.
AidlabErrorCode
Public SDK error class exposed to host applications.
BluetoothState
Current Bluetooth adapter state observed by the SDK scanner.
BodyPosition
Detected user body position.
DataType
Type of data stream that can be collected from the device (e.g. ECG, HR).
DeviceEventType
Events to report live; list them in the events of Device.collect.
DisconnectReason
Reason describing why a device connection has been terminated.
EcgRhythm
Rhythm of an EcgEvent.
Exercise
Detected exercise type emitted by the device.
RejectionReason
Why the device rejected a command.
ScanMode
Scan mode controlling discovery strategy.
SleepPeriod
Period of a SleepEvent.
SyncState
State of historical data synchronization.
WearState
State describing device wearing/placement conditions.

Functions

canonicalBleUuid(String value) → String
Normalizes 16-, 32- and 128-bit UUID strings to canonical 128-bit form.

Typedefs

AidlabTransportDisconnectCallback = void Function(DisconnectReason reason, Object? error)
Callback invoked when the transport disconnects from a device.
AidlabTransportFactory = AidlabTransport Function(String address, String? name)
Factory creating a per-device transport instance.

Exceptions / Errors

AidlabError
Error delivered through DeviceDelegate.didReceiveError or thrown by a failed command.
ProcessRejectedError
A command that the device rejected, thrown with the reason it reported.