FMX.Platform.TApplicationEventHandler
Delphi
TApplicationEventHandler = function (AAppEvent: TApplicationEvent; AContext: TObject): Boolean of object;
C++
typedef bool __fastcall (__closure *TApplicationEventHandler)(TApplicationEvent AAppEvent, System::TObject* AContext);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | FMX.Platform.pas FMX.Platform.hpp |
FMX.Platform | FMX.Platform |
Description
Type of event handler for application events.
This event provides the following arguments:
AAppEvent
indicates the type of the event, such as TApplicationEvent.FinishedLaunching.AContext
is an object that provides additional context. Often the type of event is enough information andAContext
is null.boolean
return value is the result of whether the event was handled. Meaning that FMX application received an external request and the developer can process it.
- Note: The boolean return value is only used for OpenURL event type and it is only available on iOS (at this moment).