#include <FormItMessaging.h>
◆ Broadcast() [1/3]
◆ Broadcast() [2/3]
template<typename T >
static void FormIt::MessageBroadcaster::Broadcast |
( |
T const & |
message, |
|
|
typename T::Payload && |
payload |
|
) |
| |
|
inlinestatic |
◆ Broadcast() [3/3]
template<typename T >
static void FormIt::MessageBroadcaster::Broadcast |
( |
T const & |
message, |
|
|
typename T::Payload const & |
payload |
|
) |
| |
|
inlinestatic |
Sends the given message to all Listeners that have subscribed to it.
- Parameters
-
◆ construct()
static void FormIt::MessageBroadcaster::construct |
( |
| ) |
|
|
static |
◆ destroy()
static void FormIt::MessageBroadcaster::destroy |
( |
| ) |
|
|
static |
◆ GetScriptMessages()
static ::vector< 1::string > FormIt::MessageBroadcaster::GetScriptMessages |
( |
| ) |
|
|
static |
Get the list of messages.
◆ RegisterScriptMessage()
Register the message for scripting.
◆ SubscribeToAllMessages()
SubscribeToAllMessages will broadcast all the messages to the given listener.
For example, this is used to pipe all the messages into the Web app for handling in native JS code.
- Parameters
-
◆ SubscribeToMessage() [1/2]
◆ SubscribeToMessage() [2/2]
Makes sure that all future broadcasts of message do/don't go to the given listener.
- Parameters
-
[out] | listener |
|
[in] | message |
|
◆ UnsubscribeFromAll()
◆ UnsubscribeFromMessage() [1/2]
◆ UnsubscribeFromMessage() [2/2]
The documentation for this class was generated from the following file: