获取健康监测开关

功能表

__IDO_FUNCTABLE__.funcTable35Model.getHealthSwitchState

健康监测开关模型说明

  • IDOGetHealthSwitchStateModel
参数 说明 备注
heartMode 连续测量心率开关 bool
pressureMode 压力自动检测开关 bool
spo2Mode 血氧自动检测开关 bool
scienceMode 科学睡眠开关 bool
temperatureMode 夜间体温开关 bool
noiseMode 噪声开关 bool
menstrualMode 生理周期开关 bool
walkMode 走动提醒开关 bool
handWashingMode 喝水提醒开关 bool
heartModeNotifyFlag 心率通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知
pressureNotifyFlag 压力通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知
spo2NotifyFlag 血氧通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知
menstrualNotifyFlag 生理周期通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知
guidanceNotifyFlag 健身指导通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知
reminderNotifyFlag 提醒事项通知状态类型 0无效 ; 1:允许通知; 2:静默通知; 3:关闭通知

命令代码

Objc:

[IDOFoundationCommand getHealthSwitchStateCommand:^(int errorCode, IDOGetHealthSwitchStateModel * _Nullable data) {
    if (errorCode == 0) {
       //获取成功
    }else if (errorCode == 6) {
       //设备不支持
    }else {
       //获取失败
    }
}];

Swift:

IDOFoundationCommand.getHealthSwitchStateCommand { (errorCode, model) in
    if errorCode == 0 {
        //获取成功
    }else if errorCode == 6 {
       //设备不支持
    }else {
       //获取失败.                                                                                                                                                                                                                                        
    }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2023-12-18 10:04:13

results matching ""

    No results matching ""