Platforms to show: All Mac Windows Linux Cross-Platform

Back to CLLocationManagerMBS class.

CLLocationManagerMBS.authorizationStatus as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the application's authorization status for using location services.

The authorization status of a given application is managed by the system and determined by several factors. Applications must be explicitly authorized to use location services by the user and location services must themselves currently be enabled for the system. This authorization takes place automatically when your application first attempts to use location services.

Available on Mac OS X 10.7 or later.

CLLocationManagerMBS.CheckEvents

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Checks for new events.

This is a helper app to make CoreLocation geocoder work in web projects.
Should not be called in desktop apps.
But for a web app, use a Timer (not WebTimer) to run it on main loop every few milliseconds (e.g. 500 ms).

Some examples using this method:

CLLocationManagerMBS.deferredLocationUpdatesAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns true if the device supports deferred location updates, otherwise false.

Requires Mac OS X 10.9.

CLLocationManagerMBS.headingAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value indicating whether the location manager is able to generate heading-related events.
Example
msgbox "headingAvailable available: "+str(CLLocationManagerMBS.headingAvailable)

Returns true if heading data is available or false if it is not.

Heading data may not be available on all iOS-based devices. You should check the value returned by this method before asking the location manager to deliver heading-related events.

Available on Mac OS X 10.7 or later.

CLLocationManagerMBS.kCLErrorDomain as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The domain for Core Location errors. This value is used in the NSError class.

CLLocationManagerMBS.kCLErrorUserInfoAlternateRegionKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
A key in the user information dictionary of an kCLErrorRegionMonitoringResponseDelayed error whose value is a CLRegionMBS object that the location services can more effectively monitor.

CLLocationManagerMBS.locationServicesAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the CoreLocation framework is available.
Example
if CLLocationManagerMBS.locationServicesAvailable then
if CLLocationManagerMBS.locationServicesEnabled then
MsgBox "available and enabled"
else
MsgBox "available and not enabled"
end if
else
MsgBox "Not available"
end if

Returns true on Mac OS X 10.6 and false on all other systems.

Some examples using this method:

CLLocationManagerMBS.locationServicesEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
A Boolean value indicating whether location services are enabled on the device.
Example
if CLLocationManagerMBS.locationServicesAvailable then
if CLLocationManagerMBS.locationServicesEnabled then
MsgBox "available and enabled"
else
MsgBox "available and not enabled"
end if
else
MsgBox "Not available"
end if

Some examples using this method:

CLLocationManagerMBS.regionMonitoringAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean indicating whether region monitoring is supported on the current device.
Example
msgbox "regionMonitoringAvailable available: "+str(CLLocationManagerMBS.regionMonitoringAvailable)

Available on Mac OS X 10.7 or later.

Returns true if region monitoring is available or false if it is not.

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 application or for all applications.

CLLocationManagerMBS.regionMonitoringEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean indicating whether region monitoring is currently enabled.

Returns true if region monitoring is available and is currently enabled or false if it is unavailable or not enabled.

The user can enable or disable location services (including region monitoring) altogether from the System Preferences.

You should check the return value of this method before starting region monitoring updates to determine if the user currently allows location services to be used at all. If this method returns false and you start region monitoring updates anyway, the Core Location framework prompts the user with a confirmation panel asking whether location services should be reenabled.

This method does not check to see if region monitoring capabilities are actually supported by the device. Therefore, you should also check the return value of the regionMonitoringAvailable class method before attempting to start region monitoring services.

Available on Mac OS X 10.7 or later.

CLLocationManagerMBS.significantLocationChangeMonitoringAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreLocation MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns true if the device supports significant location change monitoring, otherwise false.
Example
msgbox "significantLocationChangeMonitoringAvailable available: "+str(CLLocationManagerMBS.significantLocationChangeMonitoringAvailable)

Available on Mac OS X 10.7 or later.

This method indicates whether the device is able to report updates based on significant location changes only. (This primarily involves detecting changes in the cell tower currently associated with the device.) This capability provides tremendous power savings for applications that want to track a user's approximate location and do not need highly accurate position information.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...