Ejemplo n.º 1
0
        public void login(Dictionary <string, string> info)
        {
            string text = AnySDKUtil.dictionaryToString(info);

            Debug.Log("login   " + text);
            AnySDKUser.AnySDKUser_nativeLoginWithMap(text);
        }
Ejemplo n.º 2
0
        public void onPay(Dictionary <string, string> userInfo)
        {
            string text = AnySDKUtil.dictionaryToString(userInfo);

            Debug.Log("onPay   " + text);
            AnySDKAdTracking.AnySDKAdTracking_nativeOnPay(text);
        }
Ejemplo n.º 3
0
        public void share(Dictionary <string, string> shareInfo)
        {
            string text = AnySDKUtil.dictionaryToString(shareInfo);

            Debug.Log("share   " + text);
            AnySDKREC.AnySDKREC_nativeShare(text);
        }
Ejemplo n.º 4
0
        /**
         * @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
        }
Ejemplo n.º 5
0
        /**
         * @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
        }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 public AnySDKParam(Dictionary <string, string> nValue)
 {
     _intValue    = 0;
     _floatValue  = 0;
     _boolValue   = false;
     _strValue    = null;
     _strMapValue = AnySDKUtil.dictionaryToString(nValue);
     _type        = ParamType.kParamTypeStringMap;
 }
Ejemplo n.º 8
0
        /**
         * @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
        }
Ejemplo n.º 9
0
        /**
         *
         * @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
        }
Ejemplo n.º 10
0
        /**
         * @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
        }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
        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);
        }
Ejemplo n.º 13
0
        /**
         *
         * @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
        }
Ejemplo n.º 14
0
        /**
         * @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
        }
Ejemplo n.º 15
0
        public void unlockAchievement(Dictionary <string, string> achInfo)
        {
            string info = AnySDKUtil.dictionaryToString(achInfo);

            AnySDKSocial.AnySDKSocial_nativeUnlockAchievement(info);
        }
Ejemplo n.º 16
0
        public void payForProduct(Dictionary <string, string> info, string pluginId = "")
        {
            string info2 = AnySDKUtil.dictionaryToString(info);

            AnySDKIAP.AnySDKIAP_nativePayForProduct(info2, pluginId);
        }