FMessageEndpointBuilder::WithCatchall

Adds a message handler for the given type of messages (via [TFunction](API\Runtime\Core\GenericPlatform\TFunction) object).

Windows
MacOS
Linux

References

Module

MessagingCommon

Header

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

Include

#include "MessageEndpointBuilder.h"

Syntax

FMessageEndpointBuilder & WithCatchall
(
    FFunctionMessageCatchall::FuncType HandlerFunc
)

Remarks

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.

Returns

This instance (for method chaining).

Parameters

Parameter

Description

MessageType

The type of messages to handle.

Function

The function object 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