类 ActionConstants
- java.lang.Object
-
- com.ltdigital.sdk.android.ble_protocol.constants.ActionConstants
-
public class ActionConstants extends java.lang.Object
-
-
字段概要
-
构造器概要
构造器 构造器 说明 ActionConstants()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.util.Set<java.lang.Integer>
getAllAutoRecognizeSportTypeSet()
static java.util.HashMap<java.lang.Integer,java.lang.Integer>
getDefaultAutoRecognizeMap()
static java.lang.String
getSportTypeName(java.lang.String typeStr)
static boolean
isCountAction(java.lang.String typeStr)
获取是否是计数类运动static boolean
isSupportSportType(java.lang.String typeStr)
static boolean
isSwim(java.lang.String typeStr)
static void
removeValidAutoSetting(java.util.Map<java.lang.Integer,java.lang.Integer> autoTimeMap)
-
-
-
字段详细资料
-
SPORTS_TYPE_PUSHUP
public static final int SPORTS_TYPE_PUSHUP
俯卧撑- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_PULLUP
public static final int SPORTS_TYPE_PULLUP
引体向上- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_HANGING
public static final int SPORTS_TYPE_HANGING
直臂垂悬- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_BODY_SWING
public static final int SPORTS_TYPE_BODY_SWING
直臂浪摆- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SLOPE_PULLUP
public static final int SPORTS_TYPE_SLOPE_PULLUP
浪摆引体- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SITUP
public static final int SPORTS_TYPE_SITUP
仰卧起坐- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_PLANKS
public static final int SPORTS_TYPE_PLANKS
平板支撑- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_LEAPFROG
public static final int SPORTS_TYPE_LEAPFROG
蛙跳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_BURPEE
public static final int SPORTS_TYPE_BURPEE
波比跳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_HIGH_KNEES
public static final int SPORTS_TYPE_HIGH_KNEES
高抬腿- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_WALL_TIPTOE
public static final int SPORTS_TYPE_WALL_TIPTOE
靠墙踮脚- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_DUMBBELL_BENDING
public static final int SPORTS_TYPE_DUMBBELL_BENDING
哑铃弯举- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_DUMBBELL_LATERAL_RAISE
public static final int SPORTS_TYPE_DUMBBELL_LATERAL_RAISE
哑铃侧平举- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_DUMBBELL_FRONT_RAISE
public static final int SPORTS_TYPE_DUMBBELL_FRONT_RAISE
哑铃前平举- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_DUMBBELL_PRESS
public static final int SPORTS_TYPE_DUMBBELL_PRESS
哑铃推举- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_RUN_FOOT
public static final int SPORTS_TYPE_RUN_FOOT
跑步(脚)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_ROPE_JUMP
public static final int SPORTS_TYPE_ROPE_JUMP
跳绳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_MESS_ACTION
public static final int SPORTS_TYPE_MESS_ACTION
其他动作- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_STATIC
public static final int SPORTS_TYPE_STATIC
静止- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_WALKING_HAND
public static final int SPORTS_TYPE_WALKING_HAND
走(手)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_RUN_OUTSIDE_HAND
public static final int SPORTS_TYPE_RUN_OUTSIDE_HAND
跑步(手 / 室外跑步)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_OUTDOOR_CYCLING
public static final int SPORTS_TYPE_OUTDOOR_CYCLING
户外骑行- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_BURPEE_HAND
public static final int SPORTS_TYPE_BURPEE_HAND
波比跳(手)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_RUN_INSIDE_HAND
public static final int SPORTS_TYPE_RUN_INSIDE_HAND
跑步(手 / 室内跑步)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_TIPTOE
public static final int SPORTS_TYPE_TIPTOE
踮脚- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_BACKSTROKE
public static final int SPORTS_TYPE_SWIM_BACKSTROKE
仰泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_BREASTSTROKE
public static final int SPORTS_TYPE_SWIM_BREASTSTROKE
蛙泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_FREESTYLE
public static final int SPORTS_TYPE_SWIM_FREESTYLE
自由泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_BUTTERFLY_STROKE
public static final int SPORTS_TYPE_SWIM_BUTTERFLY_STROKE
蝶泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_ELLIPTICAL
public static final int SPORTS_TYPE_ELLIPTICAL
椭圆机- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_INDOOR_CYCLING
public static final int SPORTS_TYPE_INDOOR_CYCLING
室内骑行- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_HIGH_KNEES_HAND
public static final int SPORTS_TYPE_HIGH_KNEES_HAND
高抬腿(手)- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_INSIDE
public static final int SPORTS_TYPE_SWIM_INSIDE
室内游泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_OUTSIDE
public static final int SPORTS_TYPE_SWIM_OUTSIDE
室外游泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_SWIM_MIX
public static final int SPORTS_TYPE_SWIM_MIX
混合泳- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_ROWER
public static final int SPORTS_TYPE_ROWER
划船机- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_UNKNOWN
public static final int SPORTS_TYPE_UNKNOWN
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_STEP
public static final int SPORTS_TYPE_STEP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_CYCLING
public static final int SPORTS_TYPE_CYCLING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_ORIENTATION
public static final int SPORTS_TYPE_ORIENTATION
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_PULLUP
public static final java.lang.String SPORTS_TYPE_NAME_STRING_PULLUP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_PUSHUP
public static final java.lang.String SPORTS_TYPE_NAME_STRING_PUSHUP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_HANGING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_HANGING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_BODY_SWING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_BODY_SWING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_SLOPE_PULLUP
public static final java.lang.String SPORTS_TYPE_NAME_STRING_SLOPE_PULLUP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_SITUP
public static final java.lang.String SPORTS_TYPE_NAME_STRING_SITUP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_WALL_TIPTOE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_WALL_TIPTOE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_LEAPFROG
public static final java.lang.String SPORTS_TYPE_NAME_STRING_LEAPFROG
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_BURPEE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_BURPEE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_HIGH_KNEES
public static final java.lang.String SPORTS_TYPE_NAME_STRING_HIGH_KNEES
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_STATIC
public static final java.lang.String SPORTS_TYPE_NAME_STRING_STATIC
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_PLANKS
public static final java.lang.String SPORTS_TYPE_NAME_STRING_PLANKS
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_TIPTOE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_TIPTOE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_DUMBBELL_BENDING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_DUMBBELL_BENDING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_DUMBBELL_SINGLE_ARM_EXTENSION
public static final java.lang.String SPORTS_TYPE_NAME_STRING_DUMBBELL_SINGLE_ARM_EXTENSION
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_DUMBBELL_LATERAL_RAISE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_DUMBBELL_LATERAL_RAISE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_DUMBBELL_FRONT_RAISE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_DUMBBELL_FRONT_RAISE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_DUMBBELL_PRESS
public static final java.lang.String SPORTS_TYPE_NAME_STRING_DUMBBELL_PRESS
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_ROPE_JUMP
public static final java.lang.String SPORTS_TYPE_NAME_STRING_ROPE_JUMP
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_WALKING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_WALKING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_SPRINT
public static final java.lang.String SPORTS_TYPE_NAME_STRING_SPRINT
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_FREE_RUN
public static final java.lang.String SPORTS_TYPE_NAME_STRING_FREE_RUN
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_OUTDOOR_CYCLING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_OUTDOOR_CYCLING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_INDOOR_CYCLING
public static final java.lang.String SPORTS_TYPE_NAME_STRING_INDOOR_CYCLING
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_ELLIPTICAL
public static final java.lang.String SPORTS_TYPE_NAME_STRING_ELLIPTICAL
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_ROWER
public static final java.lang.String SPORTS_TYPE_NAME_STRING_ROWER
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_SWIM_INSIDE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_SWIM_INSIDE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_SWIM_OUTSIDE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_SWIM_OUTSIDE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_BACKSTROKE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_BACKSTROKE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_BREASTSTROKE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_BREASTSTROKE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_FREESTYLE_STROKE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_FREESTYLE_STROKE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_NAME_STRING_BUTTERFLY_STROKE
public static final java.lang.String SPORTS_TYPE_NAME_STRING_BUTTERFLY_STROKE
- 另请参阅:
- 常量字段值
-
SPORTS_TYPE_STRING_UNKNOWN
public static final java.lang.String SPORTS_TYPE_STRING_UNKNOWN
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
isSupportSportType
public static boolean isSupportSportType(java.lang.String typeStr)
-
isSwim
public static boolean isSwim(java.lang.String typeStr)
-
isCountAction
public static boolean isCountAction(java.lang.String typeStr)
获取是否是计数类运动- 参数:
typeStr
-- 返回:
-
getSportTypeName
public static java.lang.String getSportTypeName(java.lang.String typeStr)
-
getDefaultAutoRecognizeMap
public static java.util.HashMap<java.lang.Integer,java.lang.Integer> getDefaultAutoRecognizeMap()
-
getAllAutoRecognizeSportTypeSet
public static java.util.Set<java.lang.Integer> getAllAutoRecognizeSportTypeSet()
-
removeValidAutoSetting
public static void removeValidAutoSetting(java.util.Map<java.lang.Integer,java.lang.Integer> autoTimeMap)
-
-