当前位置:网站首页>Jerry's watch reading setting status [chapter]

Jerry's watch reading setting status [chapter]

2022-07-06 17:54:00 Rambo-Lamborghini

Read setting status //WatchManager yes WatchOpImpl Subclasses of , Must be in 1.3 Good configuration sdkWatchManagerwatchManager=WatchManager.getInstance();// Initialize health function implementation HealthOpImplhealthOp=newHealthOpImpl(watchManager);// register RCSP Event listener healthOp.getRcsoOp().registerOnRcspEventListener(newOnRcspEventListener(){@OverridepublicvoidonHealthSettingChange(BluetoothDevicedevice,HealthSettingInfohealthSettingInfo){// The health setting information will be recalled here SensorInfosensorInfo=healthSettingInfo.getSensorInfo();// Sensor setting switch UserInfouserInfo=healthSettingInfo.getUserInfo();// Personal information DisconnectReminderdisconnectReminder=healthSettingInfo.getDisconnectReminder();// Bluetooth disconnect reminder LiftWristDetectionliftWristDetection=healthSettingInfo.getLiftWristDetection();// Wrist lift detection FallDetectionfallDetection=healthSettingInfo.getFallDetection();// Fall detection HeartRateMeasureheartRateMeasure=healthSettingInfo.getHeartRateMeasure();// Continuous measurement of heart rate SleepDetectionsleepDetection=healthSettingInfo.getSleepDetection();// Sleep detection SedentaryRemindersedentaryReminder=healthSettingInfo.getSedentaryReminder();// Sit long to remind // Exercise heart rate measurement ExerciseHeartRateReminderexerciseHeartRateReminder=healthSettingInfo.getExerciseHeartRateReminder();// Automatic pressure detection AutomaticPressureDetectionautomaticPressureDetection=healthSettingInfo.getAutomaticPressureDetection();}

原网站

版权声明
本文为[Rambo-Lamborghini]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131304533259.html