Navigation
API > API/Runtime > API/Runtime/MessagingCommon > API/Runtime/MessagingCommon/FMessageEndpointBuilder
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMessageEndpointBuilder & Handling
(
typename TFunctionMessageHandler< MessageType >::FuncType HandlerFunc |
Adds a message handler for the given type of messages (via TFunction object). | MessageEndpointBuilder.h | |
FMessageEndpointBuilder & Handling
(
HandlerType* Handler, |
Adds a message handler for the given type of messages (via raw function pointers). | MessageEndpointBuilder.h |
Handling(typename TFunctionMessageHandler< MessageType >::FuncType)
Description
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.
| Name | Handling |
| Type | function |
| Header File | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
| Include Path | #include "MessageEndpointBuilder.h" |
template<typename MessageType>
FMessageEndpointBuilder & Handling
(
typename TFunctionMessageHandler < MessageType >::FuncType HandlerFunc
)
This instance (for method chaining).
Parameters
| Name | Remarks |
|---|---|
| MessageType | The type of messages to handle. |
| Function | The function object handling the messages. |
See Also
-
WithCatchall
-
WithHandler
Handling(HandlerType *, typename TRawMessageHandler< MessageType, HandlerType >::FuncType)
Description
Adds a message handler for the given type of messages (via raw function pointers).
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 raw class member functions.
| Name | Handling |
| Type | function |
| Header File | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
| Include Path | #include "MessageEndpointBuilder.h" |
template<typename MessageType, typename HandlerType>
FMessageEndpointBuilder & Handling
(
HandlerType * Handler,
typename TRawMessageHandler < MessageType, HandlerType >::FuncType HandlerFunc
)
This instance (for method chaining).
Parameters
| Name | Remarks |
|---|---|
| HandlerType | The type of the object handling the messages. |
| MessageType | The type of messages to handle. |
| Handler | The class handling the messages. |
| HandlerFunc | The class function handling the messages. |
See Also
-
WithCatchall
-
WithHandler