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();
  • 相关阅读:
    I Hate It HDU
    线段树为什么要开4倍空间
    敌兵布阵 HDU
    线段树 模板
    线段树原理详解
    HDU5037 Frog
    HDU5187 zhx's contest
    HDU5307 He is Flying
    UOJ#34. 多项式乘法
    Bzoj4766 文艺计算姬
  • 原文地址:https://www.cnblogs.com/cb168/p/5113090.html
Copyright © 2011-2022 走看看