Get Activity count
Function table
__IDO_FUNCTABLE__.funcTable4Model.timeLine
||[IDOGetDeviceFuncBluetoothModel isHaveMovment]
Activity count model description
- IDOGetActivityCountBluetoothModel
Parameter | Description | Notes |
---|---|---|
activityCount | activity count | int |
activityPacketCount | activity packet count | int |
gpsCount | GPScount | int |
gpsPacketCount | GPS packet count | int |
command code
Objc:
[IDOFoundationCommand getActivityCountCommand:^(int errorCode, IDOGetActivityCountBluetoothModel * _Nullable data) {
if (errorCode == 0) {
// get success
}else if (errorCode == 6) {
//device does not support
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getActivityCountCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device does not support
}else {
//get failed.
}
};