Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CoreLocation.locationServicesEnabled

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 No

MBS( "CoreLocation.locationServicesEnabled" )

Parameters

none

Result

Returns 1 if location services are enabled or 0 if they are not.

Description

Returns 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.

Example Databases


CoreLocation.latitude   -   CoreLocation.longitude

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins