Edit

Share via


CLLocationManager.StartMonitoring Method

Definition

Overloads

StartMonitoring(CLRegion)

Begins monitoring region for entry and exit.

StartMonitoring(CLRegion, Double)

Starts monitoring the region.

StartMonitoring(CLRegion)

Begins monitoring region for entry and exit.

[Foundation.Export("startMonitoringForRegion:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StartMonitoring (CoreLocation.CLRegion region);
[Foundation.Export("startMonitoringForRegion:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StartMonitoring (CoreLocation.CLRegion region);
abstract member StartMonitoring : CoreLocation.CLRegion -> unit
override this.StartMonitoring : CoreLocation.CLRegion -> unit

Parameters

region
CLRegion

The region to be monitored.

Attributes

Remarks

An application may monitor up to 20 uniquely-named (defined by Identifier) regions. The speed with which region notifications are delivered is dependent on network connectivity.

Region entry/exit notifications typically arrive within 3-5 minutes. Regions of less than 400m radius work better on iPhone 4S and later devices. (Notification speed seems fastest on devices with M7 coprocessors.)

Applies to

StartMonitoring(CLRegion, Double)

Starts monitoring the region.

[Foundation.Export("startMonitoringForRegion:desiredAccuracy:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StartMonitoring (CoreLocation.CLRegion region, double desiredAccuracy);
abstract member StartMonitoring : CoreLocation.CLRegion * double -> unit
override this.StartMonitoring : CoreLocation.CLRegion * double -> unit

Parameters

region
CLRegion

Region to monitor

desiredAccuracy
Double

Accuracy in meters.

Attributes

Remarks

An application may monitor up to 20 uniquely-named (defined by Identifier) regions. The speed with which region notifications are delivered is dependent on network connectivity.

Region entry/exit notifications typically arrive within 3-5 minutes. Regions of less than 400m radius work better on iPhone 4S and later devices. (Notification speed seems fastest on devices with M7 coprocessors.)

Applies to