CloudBuilder  2.8.4
Making social games is easy !
Public Member Functions | List of all members
CloudBuilder::CEventListener Struct Referenceabstract

#include <CUserManager.h>

Inheritance diagram for CloudBuilder::CEventListener:
CotCHelpers::CRefClass CloudBuilder::CMatch

Public Member Functions

virtual void onEventReceived (const char *aDomain, const CCloudResult *aEvent)=0
 
virtual void onEventError (eErrorCode aErrorCode, const char *aDomain, const CCloudResult *result)=0
 
- Public Member Functions inherited from CotCHelpers::CRefClass
void Retain ()
 
void Release ()
 
 CRefClass (const CRefClass &other)
 
CRefClassoperator= (const CRefClass &other)
 

Additional Inherited Members

- Static Public Member Functions inherited from CotCHelpers::CRefClass
template<class T >
static T * Retain (T *t)
 
template<class T >
static T * Release (T *t)
 
- Public Attributes inherited from CotCHelpers::CRefClass
unsigned __ref_count
 

Detailed Description

Implement this to be able to receive notifications related to events. When one of these functions is called (either because of an error or success), the following information will be passed along:

Parameters
aErrorCode
aDomainthe domain on which the event is received
aEventa json formatted as : "event" : {} , the json passed to pushEvent method, free form , according to software need "user" : the gamer_id of the user who push the event. "name" : the displayName of the user who pushed the event. "id" : the id of the event, generated by the system.

If you implement this, beware that your class will become a CRefClass, meaning that you should not delete it, but call Release() when you do not need the instance anymore.


The documentation for this struct was generated from the following file: