Cirrious.MvvmCross.Plugins.Location.WindowsCommon.MvxWCommonGeoLocationWatcher.PlatformSpecificStart C# (CSharp) Method

PlatformSpecificStart() protected method

protected PlatformSpecificStart ( MvxGeoLocationOptions options ) : void
options MvxGeoLocationOptions
return void
        protected override void PlatformSpecificStart(MvxGeoLocationOptions options)
        {
            if (_geolocator != null)
                throw new MvxException("You cannot start the MvxLocation service more than once");

            // see https://github.com/slodge/MvvmCross/issues/90
            _geolocator = new Geolocator
                {
                    // DesiredAccuracy = TODO options.EnableHighAccuracy
                    // MovementThreshold = TODO
                    // ReportInterval = TODO
                };

            _geolocator.StatusChanged += OnStatusChanged;
            _geolocator.PositionChanged += OnPositionChanged;
        }