How to get app resume state on iOS and Android?
问题 Is there something that can be checked from code point of view when an App is resumed on iOS and Android ? e.g. when an app gets minimized and restored (app is still running in background of device). 回答1: You need to use IFMXApplicationEventService to register a callback where the application will be notified: uses FMX.Types, FMX.Platform; function TForm1.HandleAppEvent(AAppEvent: TApplicationEvent; AContext: TObject): Boolean; begin case AAppEvent of TApplicationEvent.FinishedLaunching: Log