engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMessageSubscription类 参考abstract

Interface for message subscriptions. 更多...

#include <IMessageSubscription.h>

Public 成员函数

virtual void Disable ()=0
 Disables the subscription. 更多...
 
virtual void Enable ()=0
 Enables the subscription. 更多...
 
virtual FName GetMessageType ()=0
 Gets the type of subscribed messages. 更多...
 
virtual const TRange< EMessageScope > & GetScopeRange ()=0
 Gets the range of subscribed message scopes. 更多...
 
virtual const TWeakPtr< IMessageReceiver, ESPMode::ThreadSafe > & GetSubscriber ()=0
 Gets the subscriber. 更多...
 
virtual bool IsEnabled ()=0
 Checks whether the subscription is enabled. 更多...
 
virtual ~IMessageSubscription ()
 Virtual destructor.
 

详细描述

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.

成员函数说明

◆ Disable()

virtual void IMessageSubscription::Disable ( )
pure virtual

Disables the subscription.

参见
Enable, IsEnabled

◆ Enable()

virtual void IMessageSubscription::Enable ( )
pure virtual

Enables the subscription.

参见
Disable, IsEnabled

◆ GetMessageType()

virtual FName IMessageSubscription::GetMessageType ( )
pure virtual

Gets the type of subscribed messages.

返回
Message type.
参见
GetScopeRange, GetSubscriber

◆ GetScopeRange()

virtual const TRange< EMessageScope > & IMessageSubscription::GetScopeRange ( )
pure virtual

Gets the range of subscribed message scopes.

返回
Message scope range.
参见
GetMessageType, GetSubscriber

◆ GetSubscriber()

virtual const TWeakPtr< IMessageReceiver, ESPMode::ThreadSafe > & IMessageSubscription::GetSubscriber ( )
pure virtual

Gets the subscriber.

返回
The subscriber.
参见
GetMessageType, GetScopeRange

◆ IsEnabled()

virtual bool IMessageSubscription::IsEnabled ( )
pure virtual

Checks whether the subscription is enabled.

返回
true if the subscription is enabled, false otherwise.
参见
Enable, Disable

该类的文档由以下文件生成: