Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 9.0 9.1 Statistic
Returns the direction in which the device is traveling.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|CoreLocation||2.7||Yes||No||Yes, macOS only||No||Yes|
Returns direction number.
DescriptionReturns the direction in which the device is traveling.
Course values are measured in degrees starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. Course values may not be available on all devices. A negative value indicates that the direction is invalid.
This function queries current know location. It's updated from time to time. To receive a script call when new location is available, please use CoreLocation.SetUpdateLocationHandler.
Created 18th August 2014, last changed 18th August 2014
Feedback: Report problem or ask question.
MBS Xojo Plugins