activity property

Activity activity
getter/setter pair

Device motion-activity when this Location was recorded.

See Activity

BackgroundGeolocation.onLocation((Location location) {
  activityType = location.activity.type;
  int confidence = location.activity.confidence;

  print("[onLocation] Motion activity, type: $activityType, confidence: $confidence");
});

Implementation

late Activity activity;