MKMapView.SetUserTrackingMode(MKUserTrackingMode, Boolean) MKMapView.SetUserTrackingMode(MKUserTrackingMode, Boolean) Method

Definition

Sets the user tracking mode to a value in MKUserTrackingMode.

[Foundation.Export("setUserTrackingMode:animated:")]
public virtual void SetUserTrackingMode (MapKit.MKUserTrackingMode trackingMode, bool animated);
abstract member SetUserTrackingMode : MapKit.MKUserTrackingMode * bool -> unit
override this.SetUserTrackingMode : MapKit.MKUserTrackingMode * bool -> unit

Parameters

trackingMode
MKUserTrackingMode MKUserTrackingMode

The MKUserTrackingMode used to track the user's location.

animated
Boolean Boolean

Controls if the change in tracking mode is animated.

Remarks

Used to control if a user's location, heading or both are tracked.

Applies to