Navigation
API > API/Runtime > API/Runtime/MessagingCommon > API/Runtime/MessagingCommon/FMessageEndpointBuilder > API/Runtime/MessagingCommon/FMessageEndpointBuilder/WithCatchall
References
| Module | MessagingCommon |
| Header | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
| Include | #include "MessageEndpointBuilder.h" |
template<typename HandlerType>
FMessageEndpointBuilder & WithCatchall
&40;
HandlerType &42; Handler,
typename TRawMessageCatchall< HandlerType >::FuncType HandlerFunc
&41;
Remarks
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. This instance (for method chaining).
Parameters
| Name | Description |
|---|---|
| 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. |