Twitch SDK (Internal)
eventtracker.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2017 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
12 
13 namespace ttv
14 {
15  class IEventTracker;
16 
20  void SetEventTracker(const std::shared_ptr<IEventTracker>& eventTracker);
21 
25  std::shared_ptr<IEventTracker> GetEventTracker();
26 
36  TTV_ErrorCode TrackEvent(const std::string& eventName, const std::map<std::string, TrackingValue>& properties);
37 }
38 
39 
44 {
45 public:
54  virtual TTV_ErrorCode TrackEvent(const std::string& eventName, const std::map<std::string, TrackingValue>& properties) = 0;
55 };
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::shared_ptr< IEventTracker > GetEventTracker()
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
TTV_ErrorCode TrackEvent(const std::string &eventName, const std::map< std::string, TrackingValue > &properties)
virtual TTV_ErrorCode TrackEvent(const std::string &eventName, const std::map< std::string, TrackingValue > &properties)=0
Definition: eventtracker.h:43
void SetEventTracker(const std::shared_ptr< IEventTracker > &eventTracker)