![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IMessageBusListener.h>
Inheritance diagram for IBusListener:Public Member Functions | |
| virtual | ~IBusListener () |
| virtual ENamedThreads::Type | GetListenerThread () const =0 |
| virtual void | NotifyRegistration (const FMessageAddress &Address, EMessageBusNotification Notification)=0 |
Interface for message bus listener.
Classes that implement this interface are able to receive notifications from a message bus. A bus listener will receive a call to its appropriate IBusListener.Notify* method for dispatched notifications it is listening to.
This interface provides a rather low-level mechanism for listening to notification. Instead of implementing it, Most users will want to use an instance of see FMessageEndpoint, which provides a much more convenient way of listening to bus notifications.
|
inlinevirtual |
|
pure virtual |
Gets the name of the thread on which to receive notifications.
If the listener's Notify[*] methods are thread-safe, return ThreadAny for best performance.
Implemented in FMessageEndpoint.
|
pure virtual |
Notify a registration event from the bus This is called when a receiver is registered or unregistered from the bus.
| Address | The address of the recipient that just un/registered from the bus. |
| Notification | The even type, either Registered or Unregistered |
Implemented in FMessageEndpoint.