GOG GALAXY SDK Documentation
IRichPresenceChangeListener Class Referenceabstract

Listener for the event of rich presence modification. More...

#include <IFriends.h>

Inheritance diagram for IRichPresenceChangeListener:
[legend]

Public Types

enum  FailureReason { FAILURE_REASON_UNDEFINED , FAILURE_REASON_CONNECTION_FAILURE }
 The reason of a failure in rich presence modification. More...
 

Public Member Functions

virtual void OnRichPresenceChangeSuccess ()=0
 Notification for the event of successful rich presence change.
 
virtual void OnRichPresenceChangeFailure (FailureReason failureReason)=0
 Notification for the event of failure to modify rich presence. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the event of rich presence modification.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in rich presence modification.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

Member Function Documentation

◆ OnRichPresenceChangeFailure()

virtual void OnRichPresenceChangeFailure ( FailureReason  failureReason)
pure virtual

Notification for the event of failure to modify rich presence.

Parameters
[in]failureReasonThe cause of the failure.