Methods
(static) addRowSize(newRow) → {void}
| Name | Type | Description |
|---|---|---|
newRow | dynamic |
- Type:
- void
(static) cancelInFlightChain() → {void}
cancelInFlightChain: Stop all tasks and unobserve their content fields before starting a new chain. Prevents observer stacking and halts unnecessary in-flight work (network, processing) when loadParts() or loadPersonVideos() is called while a previous chain is still running.
- Type:
- void
(static) init() → {void}
- Type:
- void
(static) loadParts(data) → {void}
loadParts: Start the extras loading chain appropriate for the item type.
Chain by type: Movie / Video / Recording → AdditionalParts → People → LikeThis → SpecialFeatures MusicVideo / Episode → People → LikeThis Series → Seasons → People → LikeThis Season → Episodes ("Season X") → People → LikeThis BoxSet → BoxSetItems ("Movies") → People → LikeThis m.top.type must be set before calling this function (done by ShowScenes.bs).
| Name | Type | Description |
|---|---|---|
data | object |
- Type:
- void
(static) loadPersonVideos(personId) → {void}
| Name | Type | Description |
|---|---|---|
personId | dynamic |
- Type:
- void
(static) onAdditionalPartsLoaded() → {void}
- Type:
- void
(static) onBoxSetItemsLoaded() → {void}
onBoxSetItemsLoaded: Build "Movies" row then chain to People → LikeThis (BoxSet only)
- Type:
- void
(static) onLikeThisLoaded() → {void}
- Type:
- void
(static) onMoviesLoaded() → {void}
- Type:
- void
(static) onPeopleLoaded() → {void}
- Type:
- void
(static) onRowItemFocused() → {void}
- Type:
- void
(static) onRowItemSelected() → {void}
- Type:
- void
(static) onSeasonAllEpisodesLoaded() → {void}
onSeasonAllEpisodesLoaded: Build "Episodes" row then chain to People (Season only)
- Type:
- void
(static) onSeasonEpisodesLoaded() → {void}
onSeasonEpisodesLoaded: Build "More from Season X" row with current episode first, then episodes that follow it in order, then episodes that precede it (wrapping around). E.g. viewing ep 3 of 9 → [3, 4, 5, 6, 7, 8, 9, 1, 2]
- Type:
- void
(static) onSeasonsLoaded() → {void}
onSeasonsLoaded: Build "Seasons" row then chain to People (Series only)
- Type:
- void
(static) onSeriesLoaded() → {void}
- Type:
- void
(static) onShowsLoaded() → {void}
- Type:
- void
(static) onSpecialFeaturesLoaded() → {dynamic}
- Type:
- dynamic
(static) populateRow(rowRef, title, items, rowHeight) → {object}
populateRow: Reuse an existing row ContentNode (clearing its children) or create a new one. Creating appends the row to m.top.content at the current end — correct since the async chain fires in display order. m.rowHeights is reset at chain start and rebuilt here on every call, keeping it in sync with m.top.content across refreshes where rows may appear or disappear. Returns the row for the caller to store as a named ref.
| Name | Type | Description |
|---|---|---|
rowRef | object | |
title | string | |
items | object | |
rowHeight | integer | height for this specific row (from rowSlotSize.ROW_HEIGHT_* constants) |
- Type:
- object
(static) updateSize() → {void}
- Type:
- void