Type Method

deferredLocationUpdatesAvailable()

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

Declaration

class func deferredLocationUpdatesAvailable() -> Bool

Return Value

true if the device supports deferred location updates or false if it does not.

Discussion

Deferred location updates are a way for the location manager to avoid frequently waking up a background app to deliver location changes. Normally, when an app wants location updates in the background, the app must be woken up whenever a new event arrives. Waking up the app consumes power, which in some situations might be wasted if the app cannot do anything with the location information other than log it and go back to sleep anyway. Deferring location updates gives you the ability to wait until a time when your app can do something useful with the data and then process the updates all at once.

Deferred location updates require the presence of GPS hardware and may not be supported on all iOS devices.

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 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 isMonitoringAvailable(for: AnyClass)

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

class func isRangingAvailable()

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