Show: Object Pascal C++
Display Preferences

Using the RTL Cross-Platform Messaging Solution

From Appmethod Topics
Jump to: navigation, search

Go Up to Using the RTL in Multi-Device Applications


The RTL provides a cross-platform messaging solution, implemented in the System.Messaging unit.

Sending and Receiving Messages

The RTL cross-platform messaging solution is based on a message manager:

  • Components that want to receive messages of a a certain type subscribe to the target message type on the message manager.
  • Components send messages to the message manager, which relays those messages to components subscribed to the type of the received message.

For more information, see Sending and Receiving Messages Using the RTL.

FireMonkey Support for RTL Messages

FireMonkey provides a platform service, IFMXApplicationService, that provides cross-platform access to event notifications so that you do not need to use a different, platform-specific event system on each platform that your application targets. When IFMXApplicationService receives an event notification from the operating system, it generates a message object (TMessage or one of its descendants) to provide the event data. The message object contains read-only information about the event that occurred. The type of the message object indicates the type of event that occurred.

FireMonkey components also rely on RTL messages to communicate with each other.

FireMonkey components send messages to the default message manager. For a list of FireMonkey message types, see List of FireMonkey Message Types.


Topics

See Also

Personal tools
In other languages