PointerRouter クラス
ポインター識別子ごとに購読者を登録し、後続イベント(Down/Move/Up/Cancel)を配送する。
最初のヒットテストは Down 位置でしか行われないため、ドラッグ中に指がウィジェット外へ
出ても認識器へイベントを届け続けるための経路を担う。Flutter の PointerRouter に相当。
名前空間: FloatSoda.Gesture
アセンブリ: FloatSoda.dll
public sealed class PointerRouter継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
AddRoute(int, Action<PointerEvent>)
Section titled “AddRoute(int, Action<PointerEvent>)”ポインターに対する購読を追加する。
public void AddRoute(int pointer, Action<PointerEvent> route)パラメーター
Section titled “パラメーター”pointer int
購読対象のポインター識別子。
route Action<PointerEvent>
イベントを受け取るコールバック。
RemoveRoute(int, Action<PointerEvent>)
Section titled “RemoveRoute(int, Action<PointerEvent>)”ポインターに対する購読を解除する。
public void RemoveRoute(int pointer, Action<PointerEvent> route)パラメーター
Section titled “パラメーター”pointer int
購読解除対象のポインター識別子。
route Action<PointerEvent>
解除するコールバック。
最後の購読者を解除した場合は、ポインター識別子のエントリも削除します。
Route(PointerEvent)
Section titled “Route(PointerEvent)”イベントを、そのポインターの全購読者へ配送する。
public void Route(PointerEvent pointerEvent)パラメーター
Section titled “パラメーター”pointerEvent PointerEvent
配送するポインターイベント。
配送開始時の購読者一覧を使用するため、コールバック内で購読を変更できます。