GOG GALAXY SDK Documentation
IChatRoomMessagesListener Class Referenceabstract

Listener for the event of receiving chat room messages. More...

#include <IChat.h>

Inheritance diagram for IChatRoomMessagesListener:
[legend]

Public Member Functions

virtual void OnChatRoomMessagesReceived (ChatRoomID chatRoomID, uint32_t messageCount, uint32_t longestMessageLenght)=0
 Notification for the event of receiving chat room messages. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GalaxyTypeAwareListener< CHAT_ROOM_MESSAGES_LISTENER >
static ListenerType GetListenerType ()
 Returns the type of the listener. More...
 

Detailed Description

Listener for the event of receiving chat room messages.

Member Function Documentation

◆ OnChatRoomMessagesReceived()

virtual void OnChatRoomMessagesReceived ( ChatRoomID  chatRoomID,
uint32_t  messageCount,
uint32_t  longestMessageLenght 
)
pure virtual

Notification for the event of receiving chat room messages.

In order to read subsequent messages, call IChat::GetChatRoomMessageByIndex().

Remarks
First invocation of this notification initiates the dialog in the specified chat room on the receiving side. Chat room data is available at the time this notification comes.
Parameters
[in]chatRoomIDThe ID of the chat room.
[in]messageCountThe amount of messages received in the chat room.
[in]longestMessageLenghtThe length of the longest message.