Esempio n. 1
0
        /// <summary>
        /// 取得安卓SDK实例.
        /// </summary>
        /// <returns>The android SDK instance.</returns>
        private AndroidSDKBase GetAndroidSDKInstance()
        {
            AndroidSDKBase _objRet       = null;
            TPlatformType  _platformType = BuildInfo.GetInstance().PlatformType;

            switch (_platformType)
            {
            case TPlatformType.Huawei:
            {
                _objRet = new HuaweiSDK();
            }
            break;

            case TPlatformType.Tiange:
            {
                _objRet = new TiangeSDK();
            }
            break;

            case TPlatformType.Android:
            case TPlatformType.iOS:
            case TPlatformType.None:
            default:
            {
                this.Error("GetAndroidSDKInstance():The platformType is invalid setting in buildinfo.asset!!!(TPlatformType:{0})",
                           _platformType);
            }
            break;
            }
            return(_objRet);
        }
Esempio n. 2
0
        /// <summary>
        /// 初始化.
        /// </summary>
        protected override void Init()
        {
            base.Init();

            // 取得实例
            this._sdkInstance = this.GetAndroidSDKInstance();
            if (null != this._sdkInstance)
            {
                this._sdkInstance.SetUpdateStatusCallback(UpdateStatus);
            }
        }