Everything relating to any sections defined in the activity.
Methods
isFirstItemInSection() → {boolean}
Whether the current item is the first in this section.
- Since
- 0.1.0
- Returns:
- boolean
isLastItemInSection() → {boolean}
Whether the current item is the last in this section.
- Since
- 0.1.0
- Returns:
- boolean
section() → {object}
The current section of the activity.
Returns {} if sections aren't being used.
- Since
- 0.1.0
- Returns:
- object
sectionHasShuffledItems() → {boolean}
Whether items have been shuffled within this section.
- Since
- 0.1.0
- Returns:
- boolean
sectionIndex() → {number}
The index of the current section, 1-based.
Returns 0 if sections aren't being used.
- Since
- 0.1.0
- Returns:
- number
sectionItemPosition() → {number|null}
The item position in the current section.
Returns null
if the activity isn't using sections.
- Since
- 0.1.0
- Returns:
- number |
null
sections() → {array}
An array of section objects.
Returns [] if sections aren't being used.
- Since
- 0.1.0
- Returns:
- array
totalItemsInSection() → {number|null}
The total number of items in the current section.
Returns null
if sections aren't being used.
- Since
- 0.1.0
- Returns:
- number |
null