| CLASS info |
| public class ActivityIdentificationData implements Parcelable |
| 检测活动类型。 |
| Name | Desc | |
| Creator<ActivityIdentificationData> | CREATOR | 反序列化ActivityIdentificationData时使用。 |
| Constructor name |
| ActivityIdentificationData(int identificationActivity, int possibility) ActivityIdentificationData构造函数。 |
| Type | Name | Desc |
| int | VEHICLE | 设备在车辆中,如汽车。 |
| int | BIKE | 设备在自行车上。 |
| int | FOOT | 设备在行走或跑步。 |
| int | STILL | 设备静止。 |
| int | OTHERS | 无法检测当前活动。 |
| int | TILTING | 设备有明显的重力变化。 |
| int | WALKING | 设备的用户正在行走,这是FOOT的子活动。 |
| int | RUNNING | 设备的用户正在奔跑,这是FOOT的子活动。 |
| Return type | Method name |
| int | getPossibility() |
| int | getIdentificationActivity() |
| constructor |
| public ActivityIdentificationData(int identificationActivity, int possibility) |
| ActivityIdentificationData构造函数。 |
Parameters
| Parameter name | Parameter desc |
| identificationActivity | 检测到的活动类型。 |
| possibility | 置信度。 |
| Constant |
| public static final int VEHICLE |
| 设备在车辆中,如汽车。 默认值:100 |
| Constant |
| public static final int BIKE |
| 设备在自行车上。 默认值:101 |
| Constant |
| public static final int FOOT |
| 设备在行走或跑步。 默认值:102 |
| Constant |
| public static final int STILL |
| 设备静止。 默认值:103 |
| Constant |
| public static final int OTHERS |
| 无法检测当前活动。 默认值:104 |
| Constant |
| public static final int TILTING |
| 设备有明显的重力变化。 默认值:105 |
| Constant |
| public static final int WALKING |
| 设备的用户正在行走,这是FOOT的子活动。 默认值:107 |
| Constant |
| public static final int RUNNING |
| 设备的用户正在奔跑,这是FOOT的子活动。 默认值:108 |
| Method |
| public int getPossibility() |
| 返回值为0~100之间,表示用户执行此活动的置信度。值越大,活动的真实性越可信。 |
Return
| type | desc |
| int | 置信度信息。 |
| Method |
| public int getIdentificationActivity() |
| 返回检测到的活动类型。 |
Return
| type | desc |
| int | 活动类型。 |