The minimum distance in metres the device must move before a new update
is delivered. Defaults to kCLDistanceFilterNone (all movements reported).
ReadonlyidentifierThe unique identifier assigned to this watcher.
Returns the most recently received location, or null if none yet.
The location, or null
Sets the callback function invoked when location events occur.
Called with the event name and associated data: an HSLocation for "location", otherwise a string; see the type documentation
self, for chaining
Starts location updates. The callback must be set first.
self, for chaining
An independent location tracking object.
Create via
hs.location.addWatcher(). Callstart()to begin receiving updates, and set a callback to handle them.The callback receives
(event, data):"location"HSLocation"error""authorizationChanged""authorized","denied","restricted","notDetermined")