OryksaTvBackend class abstract

What the TV pieces need from ORYKSA. The real one is OryksaTvClientBackend; tests and demos use OryksaTvFakeBackend. Your app never changes when one is swapped for the other.

Implementers

Constructors

OryksaTvBackend()

Properties

hashCode → int
The hash code for this object.
no setterinherited
platform → String
The value sent as platform (for example fire_tv).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

ai({String? instructions, String? input, Map<String, dynamic>? schema}) → Future<OryksaAiResult>
An AI task of your app (client.ai), counted as ORYKSA interactions.
chat(String message, {required String locale, OryksaAppContext? appContext, bool voice = false}) → Future<OryksaReply>
Sends a message to the AI and waits for the reply (the assistant panel).
config(String locale) → Future<OryksaTvConfig>
The TV configuration for locale (texts, presenter, rules). The server picks the supported locale and says which in OryksaTvConfig.locale.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pair(String locale) → Future<OryksaPairing>
Starts pairing a phone: the QR and the code to show.
phoneEvents(String pairId, {int after = 0, Duration wait = const Duration(seconds: 25)}) → Future<OryksaPhoneEventsPage>
Waits up to wait for phone events newer than after (long-poll).
speak(String text, {required String locale, bool whisper = false, bool voice = true, String? cachedRev}) → Future<OryksaTvSpeech?>
The presenter's line text in locale, charged each time by the ORYKSA interaction cost table (OryksaTvSpeech.interactionsSpent; a line not counted is not shown). voice false: subtitles only, no voice wanted. cachedRev: the device already has this line with that voice revision, so the server may only count it and send no voice. The bytes may be empty (subtitles only). Null when the server gave nothing for it. Throws on other errors.
toString() → String
A string representation of this object.
inherited
unpair(String pairId) → Future<void>
Ends the pairing.

Operators

operator ==(Object other) → bool
The equality operator.
inherited