GOG GALAXY SDK Documentation
IFriendAddListener Class Referenceabstract

Listener for the event of a user being added to the friend list. More...

#include <IFriends.h>

Inheritance diagram for IFriendAddListener:
[legend]

Public Types

enum  InvitationDirection { INVITATION_DIRECTION_INCOMING , INVITATION_DIRECTION_OUTGOING }
 The direction of the invitation that initiated the change in the friend list. More...
 

Public Member Functions

virtual void OnFriendAdded (GalaxyID userID, InvitationDirection invitationDirection)=0
 Notification for the event of a user being added to the friend list. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the event of a user being added to the friend list.

Member Enumeration Documentation

◆ InvitationDirection

The direction of the invitation that initiated the change in the friend list.

Enumerator
INVITATION_DIRECTION_INCOMING 

The user indicated in the notification was the inviter.

INVITATION_DIRECTION_OUTGOING 

The user indicated in the notification was the invitee.

Member Function Documentation

◆ OnFriendAdded()

virtual void OnFriendAdded ( GalaxyID  userID,
InvitationDirection  invitationDirection 
)
pure virtual

Notification for the event of a user being added to the friend list.

Parameters
[in]userIDThe ID of the user who has just been added to the friend list.
[in]invitationDirectionThe direction of the invitation that determines the inviter and the invitee.