Class ScrollerBase<T>

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Interface for generic scrollers.

Inheritance
System.Object
ScrollerBase<T>
Implements
Namespace: Stylelabs.M.Sdk.Models.Querying
Assembly: Stylelabs.M.Sdk.dll
Syntax
public abstract class ScrollerBase<T> : object, IScroller<T>, IScroller where T : class, IScrollResult
Type Parameters
NameDescription
T

Type of scroll result.

Constructors

ScrollerBase(IScrollEngine<T>, Query, IQueryLoadConfiguration, TimeSpan)

Declaration
protected ScrollerBase(IScrollEngine<T> engine, Query query, IQueryLoadConfiguration loadConfiguration, TimeSpan scrollTime)
Parameters
TypeNameDescription
IScrollEngine<T>engine
Queryquery
IQueryLoadConfigurationloadConfiguration
TimeSpanscrollTime

Properties

Current

Get the current result during scrolling.

Declaration
public T Current { get; protected set; }
Property Value
TypeDescription
T

Query

Declaration
protected Query Query { get; }
Property Value
TypeDescription
Query

Methods

CanMoveNext()

Checks if the iterator can move further through the results.

Declaration
public bool CanMoveNext()
Returns
TypeDescription
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
public Task<bool> MoveNextAsync()
Returns
TypeDescription
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
public void Reset()

Explicit Interface Implementations

IScroller.Current

The current result. This is initially null. Use MoveNextAsync() first.

Declaration
IScrollResult IScroller.Current { get; }
Returns
TypeDescription
IScrollResult

Implements

この記事を改善するための提案がある場合は、 お知らせください!