コード例 #1
0
ファイル: iOSVisitProbe.cs プロジェクト: caverject10/sensus
        protected override async Task StartListeningAsync()
        {
            await base.StartListeningAsync();

            if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0) && CLLocationManager.LocationServicesEnabled)
            {
                _locationManager.RequestAlwaysAuthorization();
                _locationManager.StartMonitoringVisits();
            }
        }