1 out of 1 rated this helpful - Rate this topic

GeoCoordinateWatcher Class

July 26, 2012

A provider class exposing the Windows Phone location service.

System.Object
  System.Device.Location.GeoCoordinateWatcher

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)
XMLNS for XAML: Not mapped to an xmlns.
public class GeoCoordinateWatcher : IDisposable, 
	INotifyPropertyChanged, IGeoPositionWatcher<GeoCoordinate>
<GeoCoordinateWatcher .../>

The GeoCoordinateWatcher type exposes the following members.

  NameDescription
Public methodGeoCoordinateWatcher()Instantiates a new instance of the GeoCoordinateWatcher class with the DesiredAccuracy value of Default.
Public methodGeoCoordinateWatcher(GeoPositionAccuracy)Instantiates a new instance of the GeoCoordinateWatcher class with the provided DesiredAccuracy value.
Top
  NameDescription
Public propertyDesiredAccuracyThe desired accuracy for data returned from the location service.
Public propertyMovementThresholdThe minimum distance that must be travelled between successive PositionChanged events.
Public propertyPermissionThe application’s level of access to the location service.
Public propertyPositionThe most recent position obtained from the location service.
Public propertyStatusThe status of the location service.
Top
  NameDescription
Public methodDispose()Releases managed and unmanaged resources used by the GeoCoordinateWatcher and stops the acquisition of data from the location service.
Protected methodDispose(Boolean)Releases unmanaged resources and optionally releases the managed resources used by the GeoCoordinateWatcher and stops the acquisition of data from the location service.
Public methodEquals (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the GeoCoordinateWatcher is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnPositionChangedRaises the PositionChanged event.
Protected methodOnPositionStatusChangedRaises the PositionChanged event.
Protected methodOnPropertyChangedRaises the PropertyChanged event for the GeoCoordinateWatcher class.
Public methodStart()Starts the acquisition of data from the location service.
Public methodStart(Boolean)Starts the acquisition of data from the location service.
Public methodStopStops the acquisition of data from the location service.
Public methodToString (Inherited from Object.)
Public methodTryStartAttempts to start the acquisition of data from the location service. If the provided timeout interval is exceeded before the location service responds, the request for location is stopped and the method returns false.
Top
  NameDescription
Public eventPositionChangedOccurs when the location service detects a change in position.
Public eventStatusChangedOccurs when the status of the location service changes.
Top
  NameDescription
Explicit interface implemetationPrivate eventINotifyPropertyChanged.PropertyChangedOccurs when a GeoCoordinateWatcher property changes.
Top

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.