获取运动模式排序
功能表
__IDO_FUNCTABLE__.funcTable28Model.v3SportsType
运动排序模型说明
- IDOSetSportSortingInfoBluetoothModel
参数 | 说明 | 备注 |
---|---|---|
sportSortingItems | 运动模式排序集合 | 运动模式排序集合最多8个或14个或30个或150 |
operat | 操作类型 | 0:无效; 1查询; 2设置(不需要赋值) |
allNum | 个数 | int |
currentIndex | 当前已添加运动类型的索引 | int 支持100种运动才需要赋值 |
- IDOSetSportSortingItemModel
参数 | 说明 | 备注 |
---|---|---|
index | 排序索引 | 从1、2、3、4....,0:无效 |
type | 运动模式 |
当功能表 v3SportsType、set100SportSort 支持,运动类型从48开始,1-29运动类型为v2协议 运动类型参照 IDOSportTypes文件说明 |
命令代码
Objc:
[IDOFoundationCommand get100SportModeSortCommand:^(int errorCode, IDOSetSportSortingInfoBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//获取成功
}else if (errorCode == 6) {
//设备不支持
}else {
//获取失败
}
}];
Swift:
IDOFoundationCommand.get100SportModeSortCommand { (errorCode, model) in
if errorCode == 0 {
//获取成功
}else if errorCode == 6 {
//设备不支持
}else {
//获取失败.
}
};