FMessageEndpointBuilder::WithHandler

Registers a message handler with the endpoint.

Windows
MacOS
Linux

References

Module

MessagingCommon

Header

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

Include

#include "MessageEndpointBuilder.h"

Syntax

FMessageEndpointBuilder & WithHandler
(
    const TSharedRef< IMessageHandler, ESPMode::ThreadSafe > & Handler
)

Remarks

Registers a message handler with the endpoint.

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.

Returns

This instance (for method chaining).

Parameters

Parameter

Description

Handler

The handler to add.

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