GestureRecognizerFactory<T> クラス
コンストラクタと初期化子のデリゲートで認識器を組み立てる汎用ファクトリ。
名前空間: FloatSoda.Gesture
アセンブリ: FloatSoda.dll
public sealed class GestureRecognizerFactory<T> : GestureRecognizerFactory where T : GestureRecognizer型パラメーター
Section titled “型パラメーター”T
生成する認識器の型。
object ← GestureRecognizerFactory ← GestureRecognizerFactory<T>
継承したメンバー
Section titled “継承したメンバー”GestureRecognizerFactory.ConstructRaw(), GestureRecognizerFactory.InitializeRaw(GestureRecognizer), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”GestureRecognizerFactory(Func<T>, Action<T>)
Section titled “GestureRecognizerFactory(Func<T>, Action<T>)”認識器の生成処理と初期化処理を指定してファクトリを初期化します。
public GestureRecognizerFactory(Func<T> constructor, Action<T> initializer)パラメーター
Section titled “パラメーター”constructor Func<T>
認識器を生成するデリゲート。
initializer Action<T>
生成済み認識器へコールバックを設定するデリゲート。
ConstructRaw()
Section titled “ConstructRaw()”新しい認識器を生成する。
public override GestureRecognizer ConstructRaw()このファクトリが生成した未設定のジェスチャ認識器。
InitializeRaw(GestureRecognizer)
Section titled “InitializeRaw(GestureRecognizer)”既存/新規の認識器へコールバック等を設定する。
public override void InitializeRaw(GestureRecognizer recognizer)パラメーター
Section titled “パラメーター”recognizer GestureRecognizer
このファクトリと同じ認識器型のインスタンス。
recognizerがTではない場合。