Constants indicating the type of activity associated with location updates.
SDKs
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Location
Declaration
enum CLActivityType : Int
Constants indicating the type of activity associated with location updates.
SDKs
Framework
enum CLActivityType : Int
case other
The location manager is being used for an unknown activity.
case automotive Navigation
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 other Navigation
The location manager is being used to track movements for other types of vehicular navigation that are not automobile related.
case airborne
The location manager is being used specifically during airborne activities.
func start Updating Location()
Starts the generation of updates that report the user’s current location.
func stop Updating Location()
Stops the generation of location updates.
func request Location()
Requests the one-time delivery of the user’s current location.
var pauses Location Updates Automatically: Bool
A Boolean value indicating whether the location manager object may pause location updates.
var allows Background Location Updates: Bool
A Boolean value indicating whether the app should receive location updates when suspended.
var shows Background Location Indicator: Bool
A Boolean indicating whether the status bar changes its appearance when an app uses location services in the background.
var distance Filter: CLLocation Distance
The minimum distance (measured in meters) a device must move horizontally before an update event is generated.
let CLLocation Distance Max: CLLocation Distance
A constant indicating the maximum distance.
let k CLDistance Filter None: CLLocation Distance
A constant indicating that all movement should be reported.
var desired Accuracy: CLLocation Accuracy
The accuracy of the location data.
var activity Type: CLActivity Type
The type of user activity associated with the location updates.