Module |
|
Header |
/Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
Include |
#include "MessageEndpointBuilder.h" |
FMessageEndpointBuilder & WithCatchall
(
FFunctionMessageCatchall::FuncType HandlerFunc
)
Adds a message handler for the given type of messages (via TFunction object).
It is legal to configure multiple handlers for the same message type. Each handler will be executed when a message of the specified type is received.
This overload is used to register functions that are compatible with TFunction function objects, such as global and static functions, as well as lambdas.
This instance (for method chaining).
Parameter |
Description |
---|---|
MessageType |
The type of messages to handle. |
Function |
The function object handling the messages. |