void ShareExternalCall(string msg)
        {
            Debug.Log("ShareExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)ShareResultCode.kShareSuccess:            //分享成功回调
                break;

            case (int)ShareResultCode.kShareFail:            //分享失败回调
                break;

            case (int)ShareResultCode.kShareCancel:            //分享取消回调
                break;

            case (int)ShareResultCode.kShareNetworkError:            //分享网络出错回调
                break;

            default:
                break;
            }
        }
示例#2
0
        void UserExternalCall(string msg)
        {
            Debug.Log("UserExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)UserActionResultCode.kInitSuccess:            //初始化SDK成功回调
                break;

            case (int)UserActionResultCode.kInitFail:            //初始化SDK失败回调
                break;

            case (int)UserActionResultCode.kLoginSuccess:            //登陆成功回调
                break;

            case (int)UserActionResultCode.kLoginNetworkError:    //登陆失败回调
            case (int)UserActionResultCode.kLoginCancel:          //登陆取消回调
            case (int)UserActionResultCode.kLoginFail:            //登陆失败回调
                break;

            case (int)UserActionResultCode.kLogoutSuccess:            //登出成功回调
                break;

            case (int)UserActionResultCode.kLogoutFail:            //登出失败回调
                break;

            case (int)UserActionResultCode.kPlatformEnter:            //平台中心进入回调
                break;

            case (int)UserActionResultCode.kPlatformBack:            //平台中心退出回调
                break;

            case (int)UserActionResultCode.kPausePage:            //暂停界面回调
                break;

            case (int)UserActionResultCode.kExitPage:            //退出游戏回调
                break;

            case (int)UserActionResultCode.kAntiAddictionQuery:            //防沉迷查询回调
                break;

            case (int)UserActionResultCode.kRealNameRegister:            //实名注册回调
                break;

            case (int)UserActionResultCode.kAccountSwitchSuccess:            //切换账号成功回调
                break;

            case (int)UserActionResultCode.kAccountSwitchFail:            //切换账号成功回调
                break;

            case (int)UserActionResultCode.kOpenShop:            //应用汇  悬浮窗点击粮饷按钮回调
                break;

            default:
                break;
            }
        }
        void SocialExternalCall(string msg)
        {
            Debug.Log("SocialExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)SocialRetCode.kScoreSubmitSucceed:            //提交分数成功回调

                break;

            case (int)SocialRetCode.kScoreSubmitfail:            //提交分数失败回调

                break;

            case (int)SocialRetCode.kAchUnlockSucceed:            //解锁成F就成功回调

                break;

            case (int)SocialRetCode.kAchUnlockFail:            //解锁成就失败回调

                break;

            default:
                break;
            }
        }
示例#4
0
        private void SocialExternalCall(string msg)
        {
            Debug.Log("SocialExternalCall(" + msg + ")");
            Dictionary <string, string> dictionary = AnySDKUtil.stringToDictionary(msg);
            int    num  = Convert.ToInt32(dictionary["code"]);
            string text = dictionary["msg"];

            switch (num)
            {
            }
        }
        private void PushExternalCall(string msg)
        {
            Debug.Log("PushExternalCall(" + msg + ")");
            Dictionary <string, string> dictionary = AnySDKUtil.stringToDictionary(msg);
            int    num  = Convert.ToInt32(dictionary["code"]);
            string text = dictionary["msg"];
            int    num2 = num;

            if (num2 != 0)
            {
            }
        }
示例#6
0
        void RECExternalCall(string msg)
        {
            Debug.Log("RECExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)RECResultCode.kRECInitSuccess:            //初始化成功
                Debug.Log("kRECInitSuccess\n");
                break;

            case (int)RECResultCode.kRECInitFail:            //初始化失败
                Debug.Log("kRECInitFail\n");
                break;

            case (int)RECResultCode.kRECStartRecording:            //开始录制
                Debug.Log("kRECStartRecording \n");
                break;

            case (int)RECResultCode.kRECStopRecording:            //结束录制
                Debug.Log("kRECStopRecording \n");
                break;

            case (int)RECResultCode.kRECPauseRecording:            //暂停录制
                Debug.Log("kRECPauseRecording \n");
                break;

            case (int)RECResultCode.kRECResumeRecording:            //恢复录制
                Debug.Log("kRECResumeRecording \n");
                break;

            case (int)RECResultCode.kRECEnterSDKPage:            //进入SDK页面
                Debug.Log("kRECEnterSDKPage \n");
                break;

            case (int)RECResultCode.kRECQuitSDKPage:            //退出SDK页面
                Debug.Log("kRECQuitSDKPage \n");
                break;

            case (int)RECResultCode.kRECShareSuccess:            //视频分享成功
                Debug.Log("kRECShareSuccess \n");
                break;

            case (int)RECResultCode.kRECShareFail:            //视频分享失败
                Debug.Log("kRECShareFail \n");
                break;

            default:
                break;
            }
        }
示例#7
0
        private void RECExternalCall(string msg)
        {
            Debug.Log("RECExternalCall(" + msg + ")");
            Dictionary <string, string> dictionary = AnySDKUtil.stringToDictionary(msg);
            int    num  = Convert.ToInt32(dictionary["code"]);
            string text = dictionary["msg"];

            switch (num)
            {
            case 0:
                Debug.Log("kRECInitSuccess\n");
                break;

            case 1:
                Debug.Log("kRECInitFail\n");
                break;

            case 2:
                Debug.Log("kRECStartRecording \n");
                break;

            case 3:
                Debug.Log("kRECStopRecording \n");
                break;

            case 4:
                Debug.Log("kRECPauseRecording \n");
                break;

            case 5:
                Debug.Log("kRECResumeRecording \n");
                break;

            case 6:
                Debug.Log("kRECEnterSDKPage \n");
                break;

            case 7:
                Debug.Log("kRECQuitSDKPage \n");
                break;

            case 8:
                Debug.Log("kRECShareSuccess \n");
                break;

            case 9:
                Debug.Log("kRECShareFail \n");
                break;
            }
        }
示例#8
0
        private void IAPExternalCall(string msg)
        {
            Debug.Log("IAPExternalCall(" + msg + ")");
            Dictionary <string, string> dictionary = AnySDKUtil.stringToDictionary(msg);
            int    num  = Convert.ToInt32(dictionary["code"]);
            string text = dictionary["msg"];

            switch (num)
            {
            case 0:
                Debug.Log("IAPExternalCall(" + this._instance.getOrderId(this._instance.getPluginId()[0]) + ")");
                break;
            }
        }
示例#9
0
        void PushExternalCall(string msg)
        {
            Debug.Log("PushExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)PushActionResultCode.kPushReceiveMessage:            //Push接受到消息回调
                break;

            default:
                break;
            }
        }
示例#10
0
        void AdsExternalCall(string msg)
        {
            Debug.Log("AdsExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)AdsResultCode.kAdsReceived:            //广告接受成功回调
                break;

            case (int)AdsResultCode.kAdsShown:            //广告展示回调
                break;

            case (int)AdsResultCode.kAdsDismissed:            //广告消失回调

                break;

            case (int)AdsResultCode.kPointsSpendSucceed:            //积分设置成功回调

                break;

            case (int)AdsResultCode.kPointsSpendFailed:            //积分设置失败回调

                break;

            case (int)AdsResultCode.kNetworkError:            //网络错误回调

                break;

            case (int)AdsResultCode.kUnknownError:            //未知错误回调

                break;

            case (int)AdsResultCode.kOfferWallOnPointsChanged:            //积分改变回调

                break;

            default:
                break;
            }
        }
示例#11
0
        void IAPExternalCall(string msg)
        {
            Debug.Log("IAPExternalCall(" + msg + ")");
            Dictionary <string, string> dic = AnySDKUtil.stringToDictionary(msg);
            int    code   = Convert.ToInt32(dic["code"]);
            string result = dic["msg"];

            switch (code)
            {
            case (int)PayResultCode.kPaySuccess:            //支付成功回调
                Debug.Log("IAPExternalCall(" + _instance.getOrderId(_instance.getPluginId()[0]) + ")");
                break;

            case (int)PayResultCode.kPayFail:            //支付失败回调
                break;

            case (int)PayResultCode.kPayCancel:            //支付取消回调
                break;

            case (int)PayResultCode.kPayNetworkError:            //支付超时回调
                break;

            case (int)PayResultCode.kPayProductionInforIncomplete:            //支付信息不完整
                break;

            /**
             * 新增加:正在进行中回调
             * 支付过程中若SDK没有回调结果,就认为支付正在进行中
             * 游戏开发商可让玩家去判断是否需要等待,若不等待则进行下一次的支付
             */
            case (int)PayResultCode.kPayNowPaying:
                break;

            default:
                break;
            }
        }