コード例 #1
0
        private void InitSettingController()
        {
            // create HiHealth Options, donnot add any datatype here.
            HiHealthOptions hiHealthOptions = HiHealthOptions.HiHealthOptionsBulider().Build();
            // get AuthHuaweiId by HiHealth Options.
            AuthHuaweiId signInHuaweiId = HuaweiIdAuthManager.GetExtendedAuthResult(hiHealthOptions);

            MySettingController = HuaweiHiHealth.GetSettingController(this, signInHuaweiId);
        }
コード例 #2
0
        private void InitService()
        {
            Log.Info(TAG, "HiHealthKitClient connect to service");
            // Initialize SettingController
            HiHealthOptions fitnessOptions = HiHealthOptions.HiHealthOptionsBulider().Build();
            AuthHuaweiId    signInHuaweiId = HuaweiIdAuthManager.GetExtendedAuthResult(fitnessOptions);

            MySettingController = HuaweiHiHealth.GetSettingController(this, signInHuaweiId);
        }