subscribe To Location
final static HyperTrack.Cancellable subscribeToLocation(Function1<Result<HyperTrack.Location, HyperTrack.LocationError>, Unit> callback)
Content copied to clipboard
Subscribe to the changes in the location property (that indicates the current location of the user)'
Note: The
callbackis called immediately after subscribing with the initial value, and then each time the value changes.
Return
an HyperTrack.Cancellable object that can be used to unsubscribe from the event
Parameters
callback
callback function to invoke when the location changes