Class ScrollerBase<T>
Version:
日本語翻訳に関する免責事項
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Interface for generic scrollers.
Namespace: Stylelabs.M.Sdk.Models.Querying
Assembly: Stylelabs.M.Sdk.dll
Syntax
Type Parameters
| Name | Description |
|---|---|
| T |
Type of scroll result. |
Constructors
ScrollerBase(IScrollEngine<T>, Query, IQueryLoadConfiguration, TimeSpan)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IScrollEngine<T> | engine | |
| Query | query | |
| IQueryLoadConfiguration | loadConfiguration | |
| TimeSpan | scrollTime |
Properties
Current
Get the current result during scrolling.
Declaration
Property Value
| Type | Description |
|---|---|
| T |
Query
Declaration
Property Value
| Type | Description |
|---|---|
| Query |
Methods
CanMoveNext()
Checks if the iterator can move further through the results.
Declaration
Returns
| Type | Description |
|---|---|
| System.Boolean |
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<System.Boolean> |
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
The current result. This is initially null. Use MoveNextAsync() first.
Declaration
Returns
| Type | Description |
|---|---|
| IScrollResult |