WatchSessionModule class
Thin adapter around SynheartSession for watch-based session management.
Provides:
- Watch session start/stop (relayed to companion watch via Wearable Data Layer)
- Watch connectivity status
- Stream of SessionEvents from the watch
The underlying SynheartSession is composed, not merged — the session SDK remains standalone and can be used independently.
Constructors
Properties
- activeSessionId → String?
-
The active session ID, if any.
no setter
-
events
→ Stream<
SessionEvent> -
Stream of session events from the active watch session.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
Whether a watch session is currently active.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose all resources. After this call the module cannot be reused.
-
getWatchStatus(
) → Future< WatchStatus?> - Query watch connectivity status.
-
initialize(
) → void - Initialize the module (creates the underlying SynheartSession).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startSession(
SessionConfig config) → Stream< SessionEvent> -
Start a watch session with the given
config. -
stopSession(
) → Future< void> - Stop the active watch session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited