Show/Hide Toolbars

Android Applications

Navigation: Android Specifics

ApplicationEventService Handle Event

Scroll Prev Top Next More

Possibly only applies to Applications with a "Service"

 

Var

ApplicationEventService: IFMXApplicationEventService;

begin

 if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationEventService,

     ApplicationEventService) then

          ApplicationEventService.SetApplicationEventHandler(HandleApplicationEvent);

 

 

 

case ApplicationEvent of

   TApplicationEvent.WillBecomeForeground:

 

TApplicationEvent = (FinishedLaunching, BecameActive, WillBecomeInactive, EnteredBackground, WillBecomeForeground, WillTerminate, LowMemory, TimeChange, OpenURL);