Пример #1
0
        /// <summary>
        /// Suspends device tracking.
        /// </summary>
        public async Task StopTrackingAsync()
        {
            if (LocationDataSource != null)
            {
                await LocationDataSource.StopAsync();
            }
            OnStopTracking();

            if (IsTracking)
            {
                IsTracking = false;
                IsTrackingStateChanged?.Invoke(this, false);
            }
        }
Пример #2
0
 protected override Task OnStopAsync() => _inputDataSource.StopAsync();