Interface IScroller
Namespace: Stylelabs.M.Sdk.Contracts.Querying
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IScroller
Properties
Current
The current result. This is initially null. Use MoveNextAsync() first.
Declaration
IScrollResult Current { get; }
Property Value
Type | Description |
---|---|
IScrollResult |
Methods
CanMoveNext()
Checks if the iterator can move further through the results.
Declaration
bool CanMoveNext()
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
Task<bool> MoveNextAsync()
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
void Reset()
Can we improve this article ? Provide feedback