Last active
May 10, 2019 21:33
-
-
Save AndrewWCarson/8b4a907c76b926fc16ce8b26d0860471 to your computer and use it in GitHub Desktop.
Returns True/False string for use detecting if Location Services is turned on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import CoreLocation | |
def locationServicesEnabled(): | |
if CoreLocation.CLLocationManager.locationServicesEnabled(): | |
return True | |
else: | |
return False | |
if __name__ == "__main__": | |
print locationServicesEnabled() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Formatting stuff because reasons.