读取设置状态//WatchManager是WatchOpImpl的子类,须在1.3配置好sdkWatchManagerwatchManager=WatchManager.getInstance();//初始化健康功能实现HealthOpImplhealthOp=newHealthOpImpl(watchManager);//注册RCSP事件监听器healthOp.getRcsoOp().registerOnRcspEventListener(newOnRcspEventListener(){@OverridepublicvoidonHealthSettingChange(BluetoothDevicedevice,HealthSettingInfohealthSettingInfo){//此处将会回调健康设置信息SensorInfosensorInfo=healthSettingInfo.getSensorInfo();//传感器设置开关UserInfouserInfo=healthSettingInfo.getUserInfo();//个人信息DisconnectReminderdisconnectReminder=healthSettingInfo.getDisconnectReminder();//蓝牙断开提醒LiftWristDetectionliftWristDetection=healthSettingInfo.getLiftWristDetection();//抬腕检测FallDetectionfallDetection=healthSettingInfo.getFallDetection();//跌倒检测HeartRateMeasureheartRateMeasure=healthSettingInfo.getHeartRateMeasure();//心率连续测量SleepDetectionsleepDetection=healthSettingInfo.getSleepDetection();//睡眠检测SedentaryRemindersedentaryReminder=healthSettingInfo.getSedentaryReminder();//久坐提醒//运动心率测量ExerciseHeartRateReminderexerciseHeartRateReminder=healthSettingInfo.getExerciseHeartRateReminder();//压力自动检测AutomaticPressureDetectionautomaticPressureDetection=healthSettingInfo.getAutomaticPressureDetection();}
杰理之手表读取设置状态【篇】
最新推荐文章于 2024-07-13 15:45:14 发布