activityRecognitionInterval property

int? activityRecognitionInterval
getter/setter pair

Controls the sample-rate of the activity-recognition system.

Defaults to 10000 (10 seconds). This is primarily an Android option, since only Android can constantly monitor the activity-detection API in the background (iOS uses a "stationary geofence" to detect device-motion). The desired time between activity detections. Larger values will result in fewer activity detections while improving battery life. A value of 0 will result in activity detections at the fastest possible rate.

Implementation

int? activityRecognitionInterval;