zoukankan      html  css  js  c++  java
  • delphi IOS 后台状态保存

    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();
  • 相关阅读:
    第三周学习进度
    计算最低价格
    第二阶段冲刺5
    第二阶段冲刺4
    第十三周进度条
    第二阶段冲刺3
    寻找小水王
    第二阶段冲刺2
    第二阶段冲刺1
    构建之法阅读笔记
  • 原文地址:https://www.cnblogs.com/cb168/p/5113090.html
Copyright © 2011-2022 走看看