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.

Returns:
Type: 
boolean

(static) init() → {void}

Returns:
Type: 
void

(static) loadResults() → {void}

Returns:
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.

Returns:
Type: 
void

(static) onKeyEvent(key, press) → {boolean}

Parameters:
NameTypeDescription
keystring
pressboolean
Returns:
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).

Returns:
Type: 
void

(static) onQuickPlayLaunch(msg) → {void}

Forward a non-navigable result to the playback launcher.

Parameters:
NameTypeDescription
msgdynamic
Returns:
Type: 
void

(static) onScreenHidden() → {void}

Returns:
Type: 
void

(static) onScreenShown() → {void}

Returns:
Type: 
void

(static) onSearchItemFocused() → {void}

onSearchItemFocused: Update backdrop when search result is focused

Returns:
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.

Parameters:
NameTypeDescription
msgdynamic
Returns:
Type: 
void

(static) searchMedias() → {void}

Returns:
Type: 
void