Navigation
API > API/Runtime > API/Runtime/Messaging
Interface for message subscriptions.
This interface provides access to a message subscription that was previously created with the IMessageBus.Subscribe method. It can be used to query the subscription's details using the various getters and modify its enabled state using the IMessageSubscription.Enable and IMessageSubscription.Disable methods.
A subscription that is disabled will cause a message endpoint to stop receiving messages for the subscribed message type. However, the subscription is merely disabled and not removed.
| Name | IMessageSubscription |
| Type | class |
| Header File | /Engine/Source/Runtime/Messaging/Public/IMessageSubscription.h |
| Include Path | #include "IMessageSubscription.h" |
Syntax
class IMessageSubscription
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IMessageSubscription() |
Virtual destructor. | IMessageSubscription.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Disable () |
Disables the subscription. | IMessageSubscription.h | |
void Enable () |
Enables the subscription. | IMessageSubscription.h | |
| Gets the type of subscribed messages. | IMessageSubscription.h | ||
| Gets the type of subscribed messages. | IMessageSubscription.h | ||
const TRange< EMessageScope > & GetScopeRange () |
Gets the range of subscribed message scopes. | IMessageSubscription.h | |
const TWeakPtr< IMessageReceiver, ESPMode::ThreadSafe > & GetSubscriber () |
Gets the subscriber. | IMessageSubscription.h | |
bool IsEnabled () |
Checks whether the subscription is enabled. | IMessageSubscription.h |