TapGestureRecognizer クラス
タップ(Down → スロップ内で静止 → Up)を認識する。Down 後にスロップを超えて動くと辞退し、 Up まで残ってアリーナに勝てば OnTap を発火する。
名前空間: FloatSoda.Gesture.Recognizers
アセンブリ: FloatSoda.dll
public sealed class TapGestureRecognizer : GestureRecognizer, IGestureArenaMember, IDisposableobject ← GestureRecognizer ← TapGestureRecognizer
実装するインターフェイス
Section titled “実装するインターフェイス”IGestureArenaMember, IDisposable
継承したメンバー
Section titled “継承したメンバー”GestureRecognizer.AddPointer(PointerEvent), GestureRecognizer.AcceptGesture(int), GestureRecognizer.RejectGesture(int), GestureRecognizer.Dispose(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
タップが成立したとき。
public Action? OnTap { get; set; }プロパティの値
Section titled “プロパティの値”OnTapCancel
Section titled “OnTapCancel”タップが不成立に終わったとき(他ジェスチャに敗北 / スロップ超過)。
public Action? OnTapCancel { get; set; }プロパティの値
Section titled “プロパティの値”OnTapDown
Section titled “OnTapDown”押下位置を伴う Down 通知。
public Action<Offset>? OnTapDown { get; set; }プロパティの値
Section titled “プロパティの値”Action<Offset>?
OnTapUp
Section titled “OnTapUp”離した位置を伴う Up 通知(成立前でも発火する)。
public Action<Offset>? OnTapUp { get; set; }プロパティの値
Section titled “プロパティの値”Action<Offset>?
AcceptGesture(int)
Section titled “AcceptGesture(int)”このメンバーがアリーナの勝者になったとき呼ばれる。
public override void AcceptGesture(int pointer)パラメーター
Section titled “パラメーター”pointer int
勝敗が確定したポインターの識別子。
AddAllowedPointer(PointerEvent)
Section titled “AddAllowedPointer(PointerEvent)”Down 受理時にサブクラスが初期状態を作る。
protected override void AddAllowedPointer(PointerEvent downEvent)パラメーター
Section titled “パラメーター”downEvent PointerEvent
受理したDownフェーズのポインターイベント。
HandleEvent(PointerEvent)
Section titled “HandleEvent(PointerEvent)”ルータ経由で届く後続イベント(Down/Move/Up/Cancel)を処理する。
protected override void HandleEvent(PointerEvent pointerEvent)パラメーター
Section titled “パラメーター”pointerEvent PointerEvent
処理するポインターイベント。
RejectGesture(int)
Section titled “RejectGesture(int)”このメンバーが敗者になった(他が勝った/自分が辞退した)とき呼ばれる。
public override void RejectGesture(int pointer)パラメーター
Section titled “パラメーター”pointer int
勝敗が確定したポインターの識別子。