FMX.Forms.TForm.OnSaveState

From RAD Studio API Documentation
Jump to: navigation, search

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.

FMX.Forms.TForm.OnSaveState inherits from FMX.Forms.TCommonCustomForm.OnSaveState. All content below this line refers to FMX.Forms.TCommonCustomForm.OnSaveState.

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.

See Also