Members
(static, constant) LOADING_WAIT_TIME
- Default Value
- 2
Methods
(static) addHomeSection(sectionType) → {boolean}
addHomeSection: Adds a new home section to the home rows.
Name | Type | Description |
---|---|---|
sectionType | string | Type of section to add |
indicating if the section was handled
- Type:
- boolean
(static) createContinueWatchingRow() → {void}
createContinueWatchingRow: Creates a row displaying items the user can continue watching
- Type:
- void
(static) createFavoritesRow() → {void}
createFavoritesRow: Creates a row displaying items from the user's favorites list
- Type:
- void
(static) createLatestInRows() → {void}
createLatestInRows: Creates a row displaying latest items in each of the user's libraries
- Type:
- void
(static) createLibraryRow() → {void}
createLibraryRow: Creates a row displaying the user's libraries
- Type:
- void
(static) createLiveTVRow() → {void}
createLiveTVRow: Creates a row displaying the live tv now on section
- Type:
- void
(static) createNextUpRow() → {void}
createNextUpRow: Creates a row displaying next episodes up to watch
- Type:
- void
(static) filterNodeArray(nodeArray, nodeKey, excludeArray) → {object}
Name | Type | Description |
---|---|---|
nodeArray | object | |
nodeKey | string | |
excludeArray | object |
- Type:
- object
(static) getOriginalSectionIndex(sectionName) → {integer}
getOriginalSectionIndex: Gets the index of a section from user settings and adds count of currently known latest media sections
Name | Type | Description |
---|---|---|
sectionName | string | Name of section we're looking up |
indicating index of section taking latest media sections into account
- Type:
- integer
(static) getSectionIndex(sectionTitle) → {integer}
getSectionIndex: Returns index of requested section in home row content
Name | Type | Description |
---|---|---|
sectionTitle | string | Title of section we're checking for |
indicating index of request section
- Type:
- integer
(static) init() → {void}
- Type:
- void
(static) itemSelected() → {void}
- Type:
- void
(static) loadLibraries() → {void}
- Type:
- void
(static) loadingTimerComplete() → {void}
loadingTimerComplete: Event handler for when loading wait time has expired
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
Name | Type | Description |
---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) onLibrariesLoaded() → {void}
onLibrariesLoaded: Handler when LoadLibrariesTask returns data
- Type:
- void
(static) processUserSections() → {void}
processUserSections: Loop through user's chosen home section settings and generate the content for each row
- Type:
- void
(static) removeHomeSection(sectionToRemove, sectionTitleToRemove) → {void}
removeHomeSection: Removes a home section from the home rows
Name | Type | Description |
---|---|---|
sectionToRemove | string | Title property of section we're removing |
sectionTitleToRemove | string |
- Type:
- void
(static) sectionExists(sectionTitle) → {boolean}
sectionExists: Checks if passed section exists in home row content
Name | Type | Description |
---|---|---|
sectionTitle | string | Title of section we're checking for |
indicating if the section currently exists in the home row content
- Type:
- boolean
(static) setRowItemSize() → {void}
setRowItemSize: Loops through all home sections and sets the correct item sizes per row
- Type:
- void
(static) updateContinueWatchingItems() → {void}
updateContinueWatchingItems: Processes LoadContinueWatchingTask content. Removes, Creates, or Updates continue watching row as needed
- Type:
- void
(static) updateFavoritesItems() → {void}
updateFavoritesItems: Processes LoadFavoritesTask content. Removes, Creates, or Updates favorites row as needed
- Type:
- void
(static) updateHomeRows() → {void}
updateHomeRows: Update function exposed to outside components
- Type:
- void
(static) updateLatestItems(msg) → {void}
updateLatestItems: Processes LoadItemsTask content. Removes, Creates, or Updates latest in {library} row as needed
Name | Type | Description |
---|---|---|
msg | dynamic | LoadItemsTask |
- Type:
- void
(static) updateNextUpItems() → {void}
updateNextUpItems: Processes LoadNextUpTask content. Removes, Creates, or Updates next up row as needed
- Type:
- void
(static) updateOnNowItems() → {void}
updateOnNowItems: Processes LoadOnNowTask content. Removes, Creates, or Updates latest in on now row as needed
- Type:
- void
(static) updateSize() → {void}
- Type:
- void