FMX.Platform.TApplicationEventMessage

From RAD Studio API Documentation
Jump to: navigation, search

System.Messaging.TMessageSystem.Messaging.TMessageBaseSystem.TObjectTApplicationEventMessage

Delphi

TApplicationEventMessage = class (System.Messaging.TMessage<TApplicationEventData>)

C++

class PASCALIMPLEMENTATION TApplicationEventMessage : public System::Messaging::TMessage__1<TApplicationEventData>

Properties

Type Visibility Source Unit Parent
class public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform FMX.Platform

Description

Message that contains data about an application event.

This message is sent by the platform-specific implementation of FMX.Platform on the different supported platforms. Application events originate on the underlying system, the system notifies FireMonkey, and FireMonkey sends messages of this type wrapping the system messages.

The contents of the message (TApplicationEventMessage.Value) are of type TApplicationEventData:

Using Events Instead of Messages

Instead of using messages, you can use the SetApplicationEventHandler method of the IFMXApplicationEventService platform service to define an event handler for application events. See When to Use Messages.

Platform Support

FireMonkey only sends this type of message on Android and iOS.

See Also