Enumeration

CLActivityType

Constants indicating the type of activity associated with location updates.

Topics

Constants

case other

The location manager is being used for an unknown activity.

case automotiveNavigation

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

case fitness

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

case otherNavigation

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

See Also

Initiating Standard Location Updates

func startUpdatingLocation()

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

func stopUpdatingLocation()

Stops the generation of location updates.

func requestLocation()

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

var pausesLocationUpdatesAutomatically: Bool

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

var allowsBackgroundLocationUpdates: Bool

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

var distanceFilter: CLLocationDistance

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

var desiredAccuracy: CLLocationAccuracy

The accuracy of the location data.

var activityType: CLActivityType

The type of user activity associated with the location updates.