Get Sports automatic recognition switch

Function table

__IDO_FUNCTABLE__.funcTable38Model.getActivitySwitch

Sports mode auto recognition switch model description

  • IDOSetActivitySwitchBluetoothModel
Parameter Description Notes
sportTypeOnOff Automatic recognition of sports type switch This parameter is deprecated
sportRunOnOff Automatic recognition of running switch bool
sportBicycleOnOff Automatic recognition of bicycle switches bool
autoPauseOnOff sports automatic pause switch bool
endRemindOnOff end reminder switch bool
sportEllipticalOnOff Automatic recognition of elliptical machine switch bool
sportRowingOnOff Automatic recognition of rowing machine switches bool
sportSwimOnOff Automatic recognition of swimming switch bool

command code

Objc:

[IDOFoundationCommand getActivitySwitchCommand:^(int errorCode, IDOSetActivitySwitchBluetoothModel * _Nullable data) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

IDOFoundationCommand.getActivitySwitch { (errorCode, model) in
    if errorCode == 0 {
        //get success
    }else if errorCode == 6 {
       //device not supported
    }else {
       //get failed.                                                                                                                                                                                                                                        
    }
};
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 ""