API:FMX.Gestures.TGestureManager.AddRecordedGesture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddRecordedGesture(const Item: TCustomGestureCollectionItem): TGestureID; override;

C++

virtual Fmx::Types::TGestureID __fastcall AddRecordedGesture(Fmx::Types::TCustomGestureCollectionItem* const Item)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Gestures.pas
FMX.Gestures.hpp
FMX.Gestures TGestureManager

Description

Adds a newly recorded gesture to the gesture manager.

FMX.Gestures.TGestureManager.AddRecordedGesture inherits from FMX.Types.TCustomGestureManager.AddRecordedGesture. All content below this line refers to FMX.Types.TCustomGestureManager.AddRecordedGesture.

Adds a newly recorded gesture to the gesture manager.

Override AddRecordedGesture in descending classes to implement support for adding newly recorded gestures to the gesture manager component.

The first variant of the AddRecordedGesture method actually creates a new TCustomGestureCollectionItem instance, adds it into the internal list, and returns it to the caller.

The second variant of the AddRecordedGesture method expects an already created TCustomGestureCollectionItem item.

See Also