Esempio n. 1
0
        /// <summary>
        /// 初始化.
        /// </summary>
        protected override void Init()
        {
            base.Init();

            // 取得实例
            _sdkInstance = GetAndroidSdkInstance();
            _sdkInstance?.SetUpdateStatusCallback(UpdateStatus);
        }
Esempio n. 2
0
        /// <summary>
        /// 取得安卓SDK实例.
        /// </summary>
        /// <returns>The android SDK instance.</returns>
        private AndroidSdkBase GetAndroidSdkInstance()
        {
            AndroidSdkBase objRet        = null;
            var            _platformType = SysSettings.GetInstance().PlatformType;

            switch (_platformType)
            {
            case PlatformType.Huawei:
            {
                objRet = new HuaweiSdk();
            }
            break;

            case PlatformType.Tiange:
            {
                objRet = new TiangeSDK();
            }
            break;

            case PlatformType.None:
                break;

            case PlatformType.iOS:
                break;

            case PlatformType.Android:
                break;

            default:
            {
                Error("GetAndroidSDKInstance():The platformType is invalid setting in buildinfo.asset!!!(TPlatformType:{0})",
                      _platformType);
            }
            break;
            }
            return(objRet);
        }