API:FMX.Gestures.TGestureManager.AddRecordedGesture
Delphi
function AddRecordedGesture(const Item: TCustomGestureCollectionItem): TGestureID; override;
C++
virtual Fmx::Types::TGestureID __fastcall AddRecordedGesture(Fmx::Types::TCustomGestureCollectionItem* const Item)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureManager |
説明
新しく記録されたジェスチャをジェスチャ マネージャに追加します。
FMX.Gestures.TGestureManager.AddRecordedGesture は FMX.Types.TCustomGestureManager.AddRecordedGesture を継承しています。以下の内容はすべて FMX.Types.TCustomGestureManager.AddRecordedGesture を参照しています。
新しく記録されたジェスチャをジェスチャ マネージャに追加します。
下位クラスで AddRecordedGesture をオーバーライドして、 ジェスチャ マネージャ コンポーネントへ新しく記録されたジェスチャを追加するサポートを実装してください。
AddRecordedGesture メソッドの最初のバリアントは、実際に新しい TCustomGestureCollectionItem インスタンスを作成し、内部リストの中に追加した上で呼び出し側にそれを戻します。
AddRecordedGesture メソッドの 2 番目のバリアントでは、すでに TCustomGestureCollectionItem アイテムが作成されています。