FMX.Gestures.TGestureManager.FindCustomGesture
Delphi
function FindCustomGesture(AGestureID: TGestureID): TCustomGestureCollectionItem; override;
function FindCustomGesture(const AName: string): TCustomGestureCollectionItem; override;
C++
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindCustomGesture(Fmx::Types::TGestureID AGestureID)/* overload */;
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindCustomGesture(const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureManager |
Description
Returns a recorded or a registered gesture managed by the gesture manager component.
FindCustomGesture calls the FindGesture and searches through recorded gestures. If unsuccessful, FindCustomGesture then searches through registered gestures. The function returns a TCustomGestureCollection instance with the located element, or nil if the search failed.
The function has two forms, depending on the search criteria--by the gesture's name (string) or its GestureID (TGestureID).