mobileCurrentLocation | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | iphonecurrentlocation() | ||||||
Summary | Returns the current location of the device. | ||||||
Introduced | 4.5.2 | ||||||
OS | ios, android | ||||||
Platforms | mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: mobileStopTrackingSensor, mobileStartTrackingSensor Function: mobileSensorAvailable, mobileSensorReading Message: trackingError, locationChanged | ||||||
Description | Use the mobileCurrentLocation function to find the current location of the device. Use the mobileCurrentLocation function to find the current location of the device. If location tracking has not been enabled this function returns empty. Otherwise it returns an array. *Note*: Before using the mobileCurrentLocation function, the mobileSensorAvailable function should first be called with the line:
Doing this will request the necessary permissions for using location sensors. |