Methods
(static) enableVoiceWithVisibility() → {void}
Voice follows visibility. Roku allows only ONE voice-enabled VoiceTextEditBox on screen at a time. sgRouter mounts a view hidden then reveals it (visible=false->true); revealing >1 voice-enabled box at once faults Roku's native voice arbiter (the Settings-open crash, since Settings mounts several keyboards). Keeping voice enabled only while THIS keyboard is shown means at most one is ever voice-enabled — no contention — while preserving voice dictation when the keyboard is actually on screen. (SceneManager mounted views already-visible, so the boxes registered incrementally and never tripped this; the router's bulk reveal exposed it.)
Returns:
- Type:
- void
(static) init() → {void}
Returns:
- Type:
- void
(static) keySelected(key) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
key | string |
Returns:
- Type:
- boolean
(static) onKeyEvent(key, press) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
Returns:
- Type:
- boolean
(static) onVoiceVisibilityChanged() → {void}
Returns:
- Type:
- void