The mode used to track the user location on the map.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.2+
Framework
- Map
Kit
Declaration
typedef enum MKUserTrackingMode : NSInteger {
...
} MKUserTrackingMode;
The mode used to track the user location on the map.
SDKs
Framework
typedef enum MKUserTrackingMode : NSInteger {
...
} MKUserTrackingMode;
MKUser Tracking Mode None
The map does not follow the user location.
MKUser Tracking Mode Follow
The map follows the user location.
MKUser Tracking Mode Follow With Heading
The map follows the user location and rotates when the heading changes.
Transform the user’s location displayed on a map into an informative description.
shows User Location
A Boolean value indicating whether the map should try to display the user’s location.
user Location Visible
A Boolean value indicating whether the device’s current location is visible in the map view.
user Location
The annotation object representing the user’s current location.
user Tracking Mode
The mode used to track the user location.
- set User Tracking Mode: animated:
Sets the mode used to track the user location with optional animation.