public void login(Dictionary <string, string> info) { string text = AnySDKUtil.dictionaryToString(info); Debug.Log("login " + text); AnySDKUser.AnySDKUser_nativeLoginWithMap(text); }
public void onPay(Dictionary <string, string> userInfo) { string text = AnySDKUtil.dictionaryToString(userInfo); Debug.Log("onPay " + text); AnySDKAdTracking.AnySDKAdTracking_nativeOnPay(text); }
public void share(Dictionary <string, string> shareInfo) { string text = AnySDKUtil.dictionaryToString(shareInfo); Debug.Log("share " + text); AnySDKREC.AnySDKREC_nativeShare(text); }
/** * @brief methods of achievement feature * @param the info of achievement */ public void unlockAchievement(Dictionary <string, string> achInfo) { #if !UNITY_EDITOR && ( UNITY_ANDROID ) string info = AnySDKUtil.dictionaryToString(achInfo); AnySDKSocial_nativeUnlockAchievement(info); #else Debug.Log("This platform does not support!"); #endif }
/** * @brief pay for product * @param info The info of product, must contains key: * @warning Look at the manual of plugins. * */ public void payForProduct(Dictionary <string, string> info, string pluginId = "") { #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) string value = AnySDKUtil.dictionaryToString(info); AnySDKIAP_nativePayForProduct(value, pluginId); #else Debug.Log("This platform does not support!"); #endif }
public AnySDKParam(Dictionary <string, string> nValue) { this._intValue = 0; this._floatValue = 0f; this._boolValue = false; this._strValue = null; this._strMapValue = AnySDKUtil.dictionaryToString(nValue); this._type = AnySDKParam.ParamType.kParamTypeStringMap; }
public AnySDKParam(Dictionary <string, string> nValue) { _intValue = 0; _floatValue = 0; _boolValue = false; _strValue = null; _strMapValue = AnySDKUtil.dictionaryToString(nValue); _type = ParamType.kParamTypeStringMap; }
/** * @brief share information * @param info The info of share, contains key: * @warning Look at the manual of plugins. * */ public void share(Dictionary <string, string> shareInfo) { #if UNITY_ANDROID || UNITY_IOS string info = AnySDKUtil.dictionaryToString(shareInfo); Debug.Log("share " + info); AnySDKShare_nativeShare(info); #else Debug.Log("This platform does not support!"); #endif }
/** * * @Title: onPay * @Description: Call this method if you want to track pay events as happening during a section. * @param productInfo The details of this parameters are already covered by document. * @return void */ public void onPay(Dictionary <string, string> userInfo) { #if !UNITY_EDITOR && ( UNITY_ANDROID ) string info = AnySDKUtil.dictionaryToString(userInfo); Debug.Log("onPay " + info); AnySDKAdTracking_nativeOnPay(info); #else Debug.Log("This platform does not support!"); #endif }
/** * @brief User login * if the process of logining need to know the parameters , * you can use the function * @param the parameters */ public void login(Dictionary <string, string> info) { #if !UNITY_EDITOR && ( UNITY_ANDROID ) string sInfo = AnySDKUtil.dictionaryToString(info); Debug.Log("login " + sInfo); AnySDKUser_nativeLoginWithMap(sInfo); #else Debug.Log("This platform does not support!"); #endif }
public void logEvent(string eventId, Dictionary <string, string> paramMap = null) { string message; if (paramMap == null) { message = null; } else { message = AnySDKUtil.dictionaryToString(paramMap); } AnySDKAnalytics.AnySDKAnalytics_nativeLogEvent(eventId, message); }
public void trackEvent(string eventId, Dictionary <string, string> paramMap = null) { string message; if (paramMap == null) { message = null; } else { message = AnySDKUtil.dictionaryToString(paramMap); } AnySDKAdTracking.AnySDKAdTracking_nativeTrackEvent(eventId, message); }
/** * * @Title: trackEvent * @Description: Call this method if you want to track custom events with parameters as happening during a section. * @param eventId The custom event name. * @param paramMap The details of this parameters are already covered by document. */ public void trackEvent(string eventId, Dictionary <string, string> paramMap = null) { #if !UNITY_EDITOR && ( UNITY_ANDROID ) string value; if (paramMap == null) { value = null; } else { value = AnySDKUtil.dictionaryToString(paramMap); } AnySDKAdTracking_nativeTrackEvent(eventId, value); #else Debug.Log("This platform does not support!"); #endif }
/** * @brief log an event. * @param eventId The identity of event * @param paramMap Extern parameters of the event, use NULL if not needed. */ public void logEvent(string errorId, Dictionary <string, string> paramMap = null) { #if UNITY_ANDROID || UNITY_IOS string value; if (paramMap == null) { value = null; } else { value = AnySDKUtil.dictionaryToString(paramMap); } AnySDKAnalytics_nativeLogEvent(errorId, value); #else Debug.Log("This platform does not support!"); #endif }
public void unlockAchievement(Dictionary <string, string> achInfo) { string info = AnySDKUtil.dictionaryToString(achInfo); AnySDKSocial.AnySDKSocial_nativeUnlockAchievement(info); }
public void payForProduct(Dictionary <string, string> info, string pluginId = "") { string info2 = AnySDKUtil.dictionaryToString(info); AnySDKIAP.AnySDKIAP_nativePayForProduct(info2, pluginId); }