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); }
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); }