Class ScrollerBase<T>
Interface for generic scrollers.
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
Type Parameters
| Name | Description |
|---|---|
| T |
Type of scroll result. |
Constructors
ScrollerBase(IScrollEngine<T>, Query, IQueryLoadConfiguration, TimeSpan)
Initializes a new instance of the ScrollerBase<T> class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IScrollEngine | engine |
The scroll engine. |
| Query | query |
The query. |
| IQueryLoadConfiguration | loadConfiguration |
The load configuration. |
| TimeSpan | scrollTime |
The scroll time. |
Properties
Current
Gets the current result during scrolling.
Declaration
Property Value
| Type | Description |
|---|---|
| T |
Query
Gets the query.
Declaration
Property Value
| Type | Description |
|---|---|
| Query |
Methods
CanMoveNext()
Checks if the iterator can move further through the results.
Declaration
Returns
| Type | Description |
|---|---|
| bool |
true if there more results. |
MoveNextAsync()
Advances the scroller to the next batch of the collection. The result will be available in Current.
Declaration
Returns
| Type | Description |
|---|---|
| Task<>bool |
true if the scroller was successfully advanced to the next batch. false if the scroller has passed the end of the collection. |
Reset()
Resets the scroller to start before the first result again.
Declaration
Explicit Interface Implementations
IScroller.Current
Gets the current result. This is initially null. Use MoveNextAsync() first.
Declaration
Returns
| Type | Description |
|---|---|
| IScrollResult |