Methods
(static) applyRouteQuery() → {boolean}
If the route carries a voice query in its context, pre-populate the search box (which triggers the search via the searchAlpha alias) and focus the text entry. Returns true when a query was applied so onScreenShown can skip normal focus.
onScreenShown fires on first open AND on keepAlive resume, and the router replays the ORIGINAL route (with its query context) on a back-resume (Router.brs reuses view.route) — so applying unconditionally would re-grab focus to the text box every time the user backs out of a result. Guard on the last-applied value: a back-resume carries the same query we already applied (skip), while a genuinely new voice search carries a different query (apply). The box already holds the prior term in the keepAlive case, so skipping a repeat is also the right UX.
- Type:
- boolean
(static) init() → {void}
- Type:
- void
(static) loadResults() → {void}
- Type:
- void
(static) onDestroy() → {void}
onDestroy: Full teardown releasing all resources before component removal Called automatically via JRScreen.beforeViewClose when sgRouter permanently closes this view.
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) onKeyboardFocusChange() → {void}
onKeyboardFocusChange: Fires when focus changes within the keyboard subtree (including entry/exit). Clears stale backdrop when keyboard gains focus, and adjusts alphabet layout when the voice button popup appears (textEditBox focused moves the textbox up to avoid overlap).
- Type:
- void
(static) onQuickPlayLaunch(msg) → {void}
Forward a non-navigable result to the playback launcher.
| Name | Type | Description |
|---|---|---|
msg | dynamic |
- Type:
- void
(static) onScreenHidden() → {void}
- Type:
- void
(static) onScreenShown() → {void}
- Type:
- void
(static) onSearchItemFocused() → {void}
onSearchItemFocused: Update backdrop when search result is focused
- Type:
- void
(static) onSearchItemSelected(msg) → {void}
A search result was selected — navigate to its route (rich node as context). Non-navigable results fall through to playback.
| Name | Type | Description |
|---|---|---|
msg | dynamic |
- Type:
- void
(static) searchMedias() → {void}
- Type:
- void