subscribeToLocation

final static HyperTrack.Cancellable subscribeToLocation(Function1<Result<HyperTrack.Location, HyperTrack.LocationError>, Unit> callback)

Subscribe to location changes

Return

an EmitterSubscription object that can be used to unsubscribe from the event

Parameters

callback

callback function to invoke when the location changes