Twitch SDK (Internal)
Public Member Functions | List of all members
ttv::IEventTracker Class Referenceabstract

#include <eventtracker.h>

Inheritance diagram for ttv::IEventTracker:
ttv::binding::java::NativeListenerProxy< IEventTracker > ttv::binding::java::JavaEventTrackerProxy

Public Member Functions

virtual TTV_ErrorCode TrackEvent (const std::string &eventName, const std::map< std::string, TrackingValue > &properties)=0
 

Detailed Description

An interface clients can implement that allows the SDK to send tracking events.

Member Function Documentation

◆ TrackEvent()

virtual TTV_ErrorCode ttv::IEventTracker::TrackEvent ( const std::string &  eventName,
const std::map< std::string, TrackingValue > &  properties 
)
pure virtual

Sends a tracking event. This method may be called from any thread, so it must handle these events in a thread-safe manner.

Parameters
[in]eventNameThe name of the event to send.
[in]propertiesA map of the event properties to send with the event.
Returns
An error code indicating the result of sending the tracking event. TTV_EC_SUCCESS - Sending the event succeeded TTV_EC_HTTPREQUEST_ERROR - The event failed to send due to an HTTP error.

Implemented in ttv::binding::java::JavaEventTrackerProxy.


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