KuralitUiController class abstract
UI-only interface that Kuralit templates use to talk to your app/service layer.
This file intentionally contains no networking/audio backend implementation. It is the bridge for integrating these templates with any backend you want.
- Implementers
Constructors
Properties
-
events
→ Stream<
KuralitUiEvent> -
Emits UI-relevant events (text, tool status, etc).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
True if the app is currently connected to its backend.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
Optional active session id (if your backend uses sessions).
no setter
Methods
-
connect(
) → Future< void> - Ensure backend connection is up (optional).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendAudioChunk(
Uint8List chunk) → Future< void> - Called by templates to push a raw PCM chunk if they manage mic capture.
-
sendText(
String text, {Map< String, dynamic> ? metadata}) → Future<void> - Send a text message.
-
startMic(
) → Future< void> - Start mic streaming (optional; templates can also use external UI).
-
stopMic(
) → Future< void> - Stop mic streaming.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited