type property
ActivityType
type
getter/setter pair
Type of activity recognized.
Possible types of activities are:
- IN_VEHICLE - The device is in a vehicle, such as a car.
- ON_BICYCLE - The device is on a bicycle.
- ON_FOOT - The device is on a user who is walking or running.
- WALKING - The device is on a user who is walking.
- RUNNING - The device is on a user who is running.
- STILL - The device is still (not moving).
The types above are adopted from the Android activity recognition API. On iOS the following mapping takes place:
- stationary => STILL
- walking => WALKING
- running => RUNNING
- automotive => IN_VEHICLE
- cycling => ON_BICYCLE
Note that the ActivityProbe discard some AR events, which include:
ActivityType.UNKNOWN
ActivityType.TILTING
- Activities with a low confidence level (<50%)
Implementation
ActivityType type;