OryksaPhoneVoice class

The phone as the microphone: the TV shows a QR, the phone opens the ORYKSA page and what the person says arrives here as text (texts, onText). For TVs that give no microphone to apps (for example the Fire TV Stick). Get it from OryksaTv.phoneVoice and show it with OryksaPairingCard.

Inheritance

Constructors

OryksaPhoneVoice(OryksaTv tv)
Creates the phone voice of tv. Use OryksaTv.phoneVoice.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isActive → bool
True from start until stop (or the code expired or the pairing ended).
no setter
lastError → Object?
The last error, when state is OryksaPhoneVoiceState.error.
no setter
lastText → String
The last text heard.
no setter
onText ↔ void Function(String text)?
Called with each text the person said on the phone.
getter/setter pair
pairing → OryksaPairing?
The pairing on screen (QR and code), or null.
no setter
pollWait ↔ Duration
How long each events request waits on the server (long-poll).
getter/setter pair
retryPause ↔ Duration
Pause before asking again after a network error.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → OryksaPhoneVoiceState
Where it is.
no setter
texts → Stream<String>
Each text the person said on the phone.
no setter
tv → OryksaTv
The TV pieces.
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
restart() → Future<void>
A new code: ends the current pairing and starts another.
start() → Future<void>
Asks the server for a code and waits for the phone. Does nothing while already active.
stop() → Future<void>
Ends the pairing (the phone page stops sending).
toString() → String
A string representation of this object.
inherited

Operators

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