Edit

Share via


CLLocationManager.IsMonitoringAvailable Method

Definition

Overloads

IsMonitoringAvailable(Type)

Determines whether the device supports region monitoring for the specified kind of CLRegion.

IsMonitoringAvailable(Class)

Determines whether the device supports region monitoring for the specified kind of CLRegion.

IsMonitoringAvailable(Type)

Determines whether the device supports region monitoring for the specified kind of CLRegion.

public static bool IsMonitoringAvailable (Type t);
static member IsMonitoringAvailable : Type -> bool

Parameters

t
Type

Type of the class, must derive from CLRegion.

Returns

True if the device supports it, false otherwise.

Remarks

This method merely determines whether region monitoring is available in the hardware, it does not determine whether the user has enabled location services or whether the application has been granted permission to use this. You must request permission separately.

To determine whether you have permission to access location services, use CLLocationManager.

Applies to

IsMonitoringAvailable(Class)

Determines whether the device supports region monitoring for the specified kind of CLRegion.

[Foundation.Export("isMonitoringAvailableForClass:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool IsMonitoringAvailable (ObjCRuntime.Class regionClass);
static member IsMonitoringAvailable : ObjCRuntime.Class -> bool

Parameters

regionClass
Class

Objective-C class, must derive from CLRegion.

Returns

True if the device supports it, false otherwise.

Attributes

Remarks

This method merely determines whether region monitoring is available in the hardware, it does not determine whether the user has enabled location services or whether the application has been granted permission to use this. You must request permission separately.

To determine whether you have permission to access location services, use CLLocationManager.

var isAvail = CLLocationManager.IsMonitoringAvailable(typeof(CLCircularRegion));                

Applies to