FormSaveState
procedure TFrm.FormSaveState(Sender: TObject);
begin
end;
http://stackoverflow.com/questions/22967520/read-and-writing-a-inifile-in-a-delphi-firemonkey-mobile-application
FMX.Forms.TFormSaveState
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.
http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Forms.TCommonCustomForm.OnSaveState
FMX.Forms.TFormSaveState
FMX.Forms.TFormSaveState.Stream
FMX.Forms.TFormSaveState.StoragePath
FMX.Forms.TFormSaveState.Name
self.SaveState.StoragePath:= System.IOUtils.TPath.GetTempPath;
self.SaveState.Stream.SaveToFile();
self.SaveState.Stream.LoadFromFile();