FMessageEndpointBuilder::Handling

Adds a message handler for the given type of messages (via raw function pointers).

Windows
MacOS
Linux

References

Module

MessagingCommon

Header

/Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h

Include

#include "MessageEndpointBuilder.h"

Syntax

template<typename MessageType, typename HandlerType>
FMessageEndpointBuilder & Handling
(
    HandlerType * Handler,
    typename TRawMessageHandler< MessageType, HandlerType >::FuncType HandlerFunc
)

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.

Returns

This instance (for method chaining).

Parameters

Parameter

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.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss