Open stesvis opened 5 years ago
I am trying to understand what the difference is between minimumTime/minimumDistance in:
minimumTime/minimumDistance
Task<bool> StartListeningAsync(TimeSpan minimumTime, double minimumDistance, bool includeHeading = false, ListenerSettings listenerSettings = null);
and
DeferralTime/DeferralDistanceMeters in ListenerSettings?
DeferralTime/DeferralDistanceMeters
ListenerSettings
How often is the PositionChangedevent fired in this scenario?
PositionChanged
await CrossGeolocator.Current.StartListeningAsync(TimeSpan.FromMinutes(60), 500, true, new ListenerSettings { ActivityType = ActivityType.AutomotiveNavigation, DeferLocationUpdates = true, DeferralDistanceMeters = 200, DeferralTime = TimeSpan.FromMinutes(20), });
Is it every 60 minutes or 500 meters whichever comes first? Or is it every 20 minutes/200 meters whichever comes first?
Thanks
I am trying to understand what the difference is between
minimumTime/minimumDistance
in:Task<bool> StartListeningAsync(TimeSpan minimumTime, double minimumDistance, bool includeHeading = false, ListenerSettings listenerSettings = null);
and
DeferralTime/DeferralDistanceMeters
inListenerSettings
?Example
How often is the
PositionChanged
event fired in this scenario?Is it every 60 minutes or 500 meters whichever comes first? Or is it every 20 minutes/200 meters whichever comes first?
Thanks