ApexLumia.Location.Location C# (CSharp) Метод

Location() публичный Метод

Constructor: Creates the GeoCoordinateWatcher object, sets the Positioning accuracy, movement threshold and Event Handlers.
public Location ( ) : System
Результат System
        public Location()
        {
            watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); // High accuracy - use GPS.
            watcher.MovementThreshold = 1;  // Will trigger whenever the phone has moved at least 1 metre.

            watcher.StatusChanged += new EventHandler<GeoPositionStatusChangedEventArgs>(watcherStatusChanged);
            watcher.PositionChanged += new EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>>(watcherPositionChanged);
        }