public LocationService(ILocationTrackingSensor locationSensor, IGeneralSettingsService generalSettingsService) { _locationSensor = locationSensor; _generalSettingsService = generalSettingsService; _locationSensor.LocationUpdated += _locationSensor_LocationUpdated; this.Register<LocationSettingsChangedMessage>(_onLocationSettingsChanged); }
public LocationService(ILocationTrackingSensor locationSensor, IGeneralSettingsService generalSettingsService) { _locationSensor = locationSensor; _generalSettingsService = generalSettingsService; _locationSensor.LocationUpdated += _locationSensor_LocationUpdated; this.Register <LocationSettingsChangedMessage>(_onLocationSettingsChanged); }
public HomeViewModel(IEntityCache cache, ILocalStorage storage, ILocationService locationService, ILocationTrackingSensor sensor) { _cache = cache; _storage = storage; _locationService = locationService; _sensor = sensor; Title = "Home"; NextPageCommand = new Command(_nextPage); ShowNativeViewCommand = new Command(_onShowNativeView); RepeatersCommand = new Command(_onRepeaters); }