Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.5 8.0 8.1 8.2 8.3 8.4 8.5 9.0 9.1 9.2 Statistic
Returns a Boolean value indicating whether location services are enabled on the device.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|CoreLocation||2.7||Yes||No||Yes, macOS only||No||Yes|
Returns 1 if location services are enabled or 0 if they are not.
DescriptionReturns a Boolean value indicating whether location services are enabled on the device.
The user can enable or disable location services altogether from the Settings application by toggling the switch in Settings > General > Location Services.
You should check the return value of this method before starting location updates to determine if the user has location services enabled for the current device. If this method returns 0 and you start location updates anyway, the Core Location framework prompts the user with a confirmation panel asking whether location services should be reenabled.
Created 18th August 2014, last changed 18th August 2014
Feedback: Report problem or ask question.
MBS Xojo blog