WidgetTicker クラス
フレームごとに「開始からの相対時間」を通知するTicker。 自分では時計を持たず、IFrameScheduler(通常はWidgetBinding)から フレームコールバック経由でタイムスタンプを受け取ります。FlutterのTicker相当。
名前空間: FloatSoda.Animation
アセンブリ: FloatSoda.dll
public class WidgetTicker : IDisposable実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”WidgetTicker(Action<TimeSpan>, ITickerProvider, Func<IFrameScheduler?>)
Section titled “WidgetTicker(Action<TimeSpan>, ITickerProvider, Func<IFrameScheduler?>)”フレームごとに「開始からの相対時間」を通知するTicker。 自分では時計を持たず、IFrameScheduler(通常はWidgetBinding)から フレームコールバック経由でタイムスタンプを受け取ります。FlutterのTicker相当。
public WidgetTicker(Action<TimeSpan> onTick, ITickerProvider creator, Func<IFrameScheduler?> resolveScheduler)パラメーター
Section titled “パラメーター”creator ITickerProvider
resolveScheduler Func<IFrameScheduler?>
IsActive
Section titled “IsActive”Start済みかどうか。Mutedでも進行中扱いのままです。
public bool IsActive { get; }プロパティの値
Section titled “プロパティの値”trueの間はTickを一時停止します。IsActiveは維持されるため、 falseに戻すと(経過時間の基準はそのままで)再開します。
public bool Muted { get; set; }プロパティの値
Section titled “プロパティの値”Scheduled
Section titled “Scheduled”次フレームのコールバックが登録済みかどうか。
public bool Scheduled { get; }プロパティの値
Section titled “プロパティの値”ShouldScheduledTick
Section titled “ShouldScheduledTick”次フレームのコールバックを登録すべき状態かどうか。
public bool ShouldScheduledTick { get; }プロパティの値
Section titled “プロパティの値”StartTime
Section titled “StartTime”初回Tickのタイムスタンプ。相対時間の基準点になります。
public TimeSpan? StartTime { get; }プロパティの値
Section titled “プロパティの値”Dispose()
Section titled “Dispose()”フレームコールバックを解除し、生成元による追跡からこのTickerを取り除きます。
public void Dispose()Start()
Section titled “Start()”Tickの供給を開始します。経過時間は次のTickを基準にゼロから始まります。
public void Start()Stop()
Section titled “Stop()”Tickの供給を停止し、経過時間の基準点をリセットします。
public void Stop()