FMX.Pickers.TPickerFactoryService
Delphi
TPickerFactoryService = class abstract(TInterfacedObject, IFMXPickerService)
C++
class PASCALIMPLEMENTATION TPickerFactoryService : public System::TInterfacedObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.Pickers.pas FMX.Pickers.hpp |
FMX.Pickers | FMX.Pickers |
Description
This class implements the methods declared in the IFMXPickerService interface.
The TPickerFactoryService class implements the methods that are used for managing pickers. These are the CreateDateTimePicker, CreateListPicker, and CloseAllPickers methods declared in the IFMXPickerService interface. These implementations call virtual abstract methods like DoCreateDateTimePicker and DoCreateListPicker, which in turn are implemented in the platform-specific units like FMX.Pickers.Default or FMX.Pickers.iOS. This trick implements the platform-specific engines for pickers. As a result, pickers can give a native view and native behavior for selection controls under different platforms.