Enumeration

CLActivityType

Constants indicating the type of activity associated with location updates.

Declaration

typedef enum CLActivityType : NSInteger {
    ...
} CLActivityType;

Topics

Activity Types

CLActivityTypeOther

The location manager is being used for an unknown activity.

CLActivityTypeAutomotiveNavigation

The location manager is being used specifically during vehicular navigation to track location changes to the automobile.

CLActivityTypeFitness

The location manager is being used to track fitness activities such as walking, running, cycling, and so on.

CLActivityTypeOtherNavigation

The location manager is being used to track movements for other types of vehicular navigation that are not automobile related.

CLActivityTypeAirborne

The location manager is being used specifically during airborne activities.

See Also

Initiating Standard Location Updates

- startUpdatingLocation

Starts the generation of updates that report the user’s current location.

- stopUpdatingLocation

Stops the generation of location updates.

- requestLocation

Requests the one-time delivery of the user’s current location.

pausesLocationUpdatesAutomatically

A Boolean value indicating whether the location manager object may pause location updates.

allowsBackgroundLocationUpdates

A Boolean value indicating whether the app should receive location updates when suspended.

showsBackgroundLocationIndicator

A Boolean indicating whether the status bar changes its appearance when an app uses location services in the background.

distanceFilter

The minimum distance (measured in meters) a device must move horizontally before an update event is generated.

CLLocationDistanceMax

A constant indicating the maximum distance.

kCLDistanceFilterNone

A constant indicating that all movement should be reported.

desiredAccuracy

The accuracy of the location data.

activityType

The type of user activity associated with the location updates.