GOG GALAXY SDK Documentation
|
The interface for handling telemetry. More...
#include <ITelemetry.h>
Public Member Functions | |
virtual void | AddStringParam (const char *name, const char *value)=0 |
Adds a string parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | AddIntParam (const char *name, int32_t value)=0 |
Adds an integer parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | AddFloatParam (const char *name, double value)=0 |
Adds a float parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | AddBoolParam (const char *name, bool value)=0 |
Adds a boolean parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | AddObjectParam (const char *name)=0 |
Adds an object parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | AddArrayParam (const char *name)=0 |
Adds an array parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual void | CloseParam ()=0 |
Closes an object or array parameter and leaves its scope. More... | |
virtual void | ClearParams ()=0 |
Clears all parameters that may have been set so far at any level. More... | |
virtual void | SetSamplingClass (const char *name)=0 |
Sets a sampling class to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent(). More... | |
virtual uint32_t | SendTelemetryEvent (const char *eventType, ITelemetryEventSendListener *const listener=NULL)=0 |
Sends a telemetry event. More... | |
virtual uint32_t | SendAnonymousTelemetryEvent (const char *eventType, ITelemetryEventSendListener *const listener=NULL)=0 |
Sends an anonymous telemetry event. More... | |
virtual const char * | GetVisitID ()=0 |
Retrieves current VisitID. More... | |
virtual void | GetVisitIDCopy (char *buffer, uint32_t bufferLength)=0 |
Copies current VisitID. More... | |
virtual void | ResetVisitID ()=0 |
Resets current VisitID. More... | |
The interface for handling telemetry.
|
pure virtual |
Adds an array parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
Subsequent calls to add parameters operate within the newly created array parameter. In order to be able to add parameters on the upper level, you need to call ITelemetry::CloseParam().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
|
pure virtual |
Adds a boolean parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
[in] | value | The value of the parameter. |
|
pure virtual |
Adds a float parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
[in] | value | The value of the parameter. |
|
pure virtual |
Adds an integer parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
[in] | value | The value of the parameter. |
|
pure virtual |
Adds an object parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
Subsequent calls to add parameters operate within the newly created object parameter. In order to be able to add parameters on the upper level, you need to call ITelemetry::CloseParam().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
|
pure virtual |
Adds a string parameter to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
[in] | name | The name of the parameter or NULL when adding a value to an array. |
[in] | value | The value of the parameter. |
|
pure virtual |
Clears all parameters that may have been set so far at any level.
This allows for safely starting to build an event from scratch.
|
pure virtual |
Closes an object or array parameter and leaves its scope.
This allows for adding parameters to the upper scope.
|
pure virtual |
Retrieves current VisitID.
Visit ID is used to link subsequent telemetry events that corresponds to the same action (e.x. game session).
|
pure virtual |
Copies current VisitID.
Visit ID is used to link subsequent telemetry events that corresponds to the same action (e.x. game session).
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
|
pure virtual |
Resets current VisitID.
Visit ID is used to link subsequent telemetry events that corresponds to the same action (e.x. game session).
|
pure virtual |
Sends an anonymous telemetry event.
This call is asynchronous. Responses come to the ITelemetryEventSendListener.
[in] | eventType | The type of the event. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Sends a telemetry event.
This call is asynchronous. Responses come to the ITelemetryEventSendListener.
[in] | eventType | The type of the event. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Sets a sampling class to be applied next time you call SendTelemetryEvent() or SendAnonymousTelemetryEvent().
[in] | name | The name of the sampling class. |