Type Method

isMonitoringAvailable(for:)

Returns a Boolean value indicating whether the device supports region monitoring using the specified class.

Declaration

class func isMonitoringAvailable(for regionClass: AnyClass) -> Bool

Parameters

regionClass

A region monitoring class from the Map Kit framework. This class must be descend from the CLRegion class.

Return Value

true if the device is capable of monitoring regions using the specified class or false if it is not.

Discussion

The availability of region monitoring support is dependent on the hardware present on the device. This method does not take into account the availability of location services or the fact that the user might have disabled them for the app or system; you must determine your app’s authorization status separately.

See Also

Determining the Availability of Services

class func authorizationStatus()

Returns the app’s authorization status for using location services.

class func locationServicesEnabled()

Returns a Boolean value indicating whether location services are enabled on the device.

class func deferredLocationUpdatesAvailable()

Returns a Boolean value indicating whether the device supports deferred location updates.

class func significantLocationChangeMonitoringAvailable()

Returns a Boolean value indicating whether the significant-change location service is available.

class func headingAvailable()

Returns a Boolean value indicating whether the location manager is able to generate heading-related events.

class func isRangingAvailable()

Returns a Boolean value indicating whether the device supports ranging of Bluetooth beacons.