Platforms to show: All Mac Windows Linux Cross-Platform
Back to CLLocationManagerMBS class.
CLLocationManagerMBS.desiredAccuracy as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The receiver does its best to achieve the requested accuracy; however, the actual accuracy is not guaranteed.
You should assign a value to this property that is appropriate for your usage scenario. In other words, if you need only the current location within a few kilometers, you should not specify kCLLocationAccuracyBest for the accuracy. Determining a location with greater accuracy requires more time and more power.
When requesting high accuracy location data, the initial event delivered by the location service may not have the accuracy you requested. The location service delivers the initial event as quickly as possible. It then continues to determine the location with the accuracy you requested and delivers additional events, as necessary, when that data is available.
The default value of this property is kCLLocationAccuracyBest.
(Read and Write property)
CLLocationManagerMBS.distanceFilter as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This distance is measured relative to the previously delivered location. Use the value kCLDistanceFilterNone to be notified of all movements.
The default value of this property is kCLDistanceFilterNone.
(Read and Write property)
CLLocationManagerMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write property)
CLLocationManagerMBS.location as CLLocationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value of this property is nil if no location data has ever been retrieved.
It is a good idea to check the timestamp of the location that is returned. If the receiver is currently gathering location data, but the minimum distance filter is large, the returned location might be relatively old. If it is, you can stop the receiver and start it again to force an update.
(Read only property)
CLLocationManagerMBS.maximumRegionMonitoringDistance as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This property defines the largest boundary distance allowed from a region's center point. Attempting to monitor a region with a distance larger than this value causes the location manager to send a kCLErrorRegionMonitoringFailure error to the delegate.
If region monitoring is unavailable or not supported, the value in this property is -1.
Available on Mac OS X 10.7 or later.
(Read only property)
CLLocationManagerMBS.purpose as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreLocation | MBS MacFrameworks Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If this property is not "" and the system needs to ask for the user's consent to use location services, it displays the provided string. You can use this string to explain why your application is using location services.
You must set the value of this property prior to starting any location services. Because the string is ultimately displayed to the user, you should always load it from a localized strings file.
Available on Mac OS X 10.7 or later.
(Read and Write property)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.