C++ Library
Integrate Tapjoy in Cocos2d-x projects using the iOS C++ Library guide, starting with header inclusion
Read time 1 minuteLast updated a month ago
If you are using Cocos2d-x to write your app in C++, you must first implement all the steps for Tapjoy iOS integration for your Xcode project then use the TapjoyCpp.h header file.
#include "Tapjoy/TapjoyCpp.h" // Tapjoy C++ APIusing namespace tapjoy; Tapjoy::trackEvent("some event");
Privacy
Full details here.API
TJPrivacyPolicyHandle policyHandle;policyHandle = TJPrivacyPolicy::getPrivacyPolicy();TJPrivacyPolicy::subjectToGDPR(policyHandle,true);TJPrivacyPolicy::setUserConsent(policyHandle, "1″);TJPrivacyPolicy::setUSPrivacy(policyHandle, "1YNY");TJPrivacyPolicy::belowConsentAge(policyHandle, true);