コード例 #1
0
        public void SetLocationService(ILocationListener service = null)
        {
            _locationServiceCrossPlatformSimple =
                service ??
                LocationListener.Create();


            _locationServiceCrossPlatformSimple
            .OnError
            .Subscribe(exc =>
            {
                Error = exc.ToString();
            });

            _locationServiceCrossPlatformSimple
            .IsListeningForChanges
            .Subscribe(isListening => IsListeningForLocationChanges = isListening);
        }