type property

String type
read / write

Type of activity recognized.

On Android these 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.
  • RUNNING - The device is on a user who is running.
  • STILL - The device is still (not moving).
  • TILTING - The device angle relative to gravity changed significantly.
  • UNKNOWN - Unable to detect the current activity.
  • WALKING - The device is on a user who is walking.

On iOS:

  • stationary
  • walking
  • running
  • automotive
  • cycling
  • unknown

Implementation

String type