API:FMX.Forms.TForm.OnSaveState
Delphi
property OnSaveState: TNotifyEvent read FOnSaveState write FOnSaveState;
C++
__property OnSaveState;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TForm |
Description
Occurs when the form is about to go to background on mobile devices or when the form is about to be closed on desktop. {{#multireplace:FMX.Forms.TForm.OnSaveState|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.Forms.TCommonCustomForm.OnSaveState|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.Forms.TCommonCustomForm.OnSaveState|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Occurs when the form is about to go to background on mobile devices or when the form is about to be closed on desktop.
Any form-related data should be saved during the OnSaveState event so this data can be restored once the application is restarted.