Loading...
Searching...
No Matches
FNotificationMessageManager Class Reference

Public Member Functions

void PublishToTopic (FString const &InTopic, const FAccelByteModelsNotificationMessage &InMessage, int32 InLocalUserNum)
 Publish notification related to a topic through registered delegate.
FDelegateHandle SubscribeToTopic (FString const &InTopic, FOnNotificationMessageReceived const &InDelegate)
 Subscribe to a topic and register the delegate for the lobby notification.
bool UnsubscribeAllDelegatesFromTopic (FString const &InTopic)
 Clear all registered delegates under a topic from the lobby notification.
bool UnsubscribeFromTopic (FString const &InTopic, FDelegateHandle const &InDelegate)
 Clear one specific registered delegate under a topic from the lobby notification.

Member Function Documentation

◆ SubscribeToTopic()

FDelegateHandle FNotificationMessageManager::SubscribeToTopic ( FString const & InTopic,
FOnNotificationMessageReceived const & InDelegate )

Subscribe to a topic and register the delegate for the lobby notification.

Parameters
InTopicThe topic that you want to subscribe
InDelegateThe delegate that you want to register

◆ UnsubscribeAllDelegatesFromTopic()

bool FNotificationMessageManager::UnsubscribeAllDelegatesFromTopic ( FString const & InTopic)

Clear all registered delegates under a topic from the lobby notification.

Parameters
InTopicThe topic that you want to delete all the deleagates

◆ UnsubscribeFromTopic()

bool FNotificationMessageManager::UnsubscribeFromTopic ( FString const & InTopic,
FDelegateHandle const & InDelegate )

Clear one specific registered delegate under a topic from the lobby notification.

Parameters
InTopicThe topic that you want to delete all the deleagates
InDelegateThe delegate that you have registered before