Type Method

regionMonitoringAvailable()

Returns a Boolean value indicating whether region monitoring is supported on the current device.

Declaration

class func regionMonitoringAvailable() -> Bool

Return Value

true if region monitoring is available; false if it is not.

Discussion

Support for region monitoring may not be available on all devices and models. You should check the value of this property before attempting to set up any regions or initiate region monitoring.

Even if region monitoring support is present on a device, it may still be unavailable because the user disabled it for the current app or for all apps.

Special Considerations

This class is deprecated in iOS 7 and later but is still supported in macOS.

See Also

Deprecated

var purpose: String?

An app-provided string that describes the reason for using location services.

class func regionMonitoringEnabled()

Returns a Boolean value indicating whether region monitoring is currently enabled.

Deprecated