Set exercise shortcuts

Select up to 8 sport mode settings at a time

Function table

 __IDO_FUNCTABLE__.sportShowCount != 0
                || [IDOGetDeviceFuncBluetoothModel isHaveMovment]

Description of Motion Shortcut Model

  • IDOSetSportShortcutInfoBluetoothModel
Parameter Description Remark
isWalk Walk bool
isRun Run bool
isByBike Cycle bool
isOnFoot Walk bool
isSwim Swim bool
isMountainClimbing Badminton bool
isOther Other bool
isFitness Fitness bool
isSpinning Spinning bike bool
isEllipsoid Rugby bool
isTreadmill Treadmill bool
isSitUp Sit-ups bool
isPushUp push-ups bool
isDumbbell Dumbbel bool
isWeightlifting Weightlifting bool
isBodybuildingExercise Gymnastics bool
isYoga Yoga bool
isRopeSkipping Skip bool
isTableTennis Table tennis bool
isBasketball Basketball bool
isFootball Football bool
isVolleyball Volleyball bool
isTennis Tennis bool
isGolf Golf bool
isBaseball Baeball bool
isSkiing Skiing bool
isRollerSkating Roller skating bool
isDance Dance bool

Command code

Objc:

IDOSetSportShortcutInfoBluetoothModel * model = [IDOSetSportShortcutInfoBluetoothModel currentModel];
[IDOFoundationCommand setSportModeSelectCommand:model
                                       callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOSetSportShortcutInfoBluetoothModel.current();
IDOFoundationCommand.setSportModeSelect(model) { (errorCode) in
     if errorCode == 0 {
        //Set successfully
     }else if errorCode == 6{
        //Device does not support this method
     }else {
       //Wrong setting
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""