コンテンツにスキップ

GestureRecognizerFactory<T> クラス

コンストラクタと初期化子のデリゲートで認識器を組み立てる汎用ファクトリ。

名前空間: FloatSoda.Gesture
アセンブリ: FloatSoda.dll

public sealed class GestureRecognizerFactory<T> : GestureRecognizerFactory where T : GestureRecognizer

T

生成する認識器の型。

object ← GestureRecognizerFactory ← GestureRecognizerFactory<T>

GestureRecognizerFactory.ConstructRaw(), GestureRecognizerFactory.InitializeRaw(GestureRecognizer), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

GestureRecognizerFactory(Func<T>, Action<T>)

Section titled “GestureRecognizerFactory(Func<T>, Action<T>)”

認識器の生成処理と初期化処理を指定してファクトリを初期化します。

public GestureRecognizerFactory(Func<T> constructor, Action<T> initializer)

constructor Func<T>

認識器を生成するデリゲート。

initializer Action<T>

生成済み認識器へコールバックを設定するデリゲート。

新しい認識器を生成する。

public override GestureRecognizer ConstructRaw()

GestureRecognizer

このファクトリが生成した未設定のジェスチャ認識器。

既存/新規の認識器へコールバック等を設定する。

public override void InitializeRaw(GestureRecognizer recognizer)

recognizer GestureRecognizer

このファクトリと同じ認識器型のインスタンス。

InvalidCastException

recognizerがTではない場合。