This topic has not yet been rated - Rate this topic

GeoCoordinateWatcher Class

March 22, 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.

  Name Description
Public method GeoCoordinateWatcher() Instantiates a new instance of the GeoCoordinateWatcher class with the DesiredAccuracy value of Default.
Public method GeoCoordinateWatcher(GeoPositionAccuracy) Instantiates a new instance of the GeoCoordinateWatcher class with the provided DesiredAccuracy value.
Top
  Name Description
Public property DesiredAccuracy The desired accuracy for data returned from the location service.
Public property MovementThreshold The minimum distance that must be travelled between successive PositionChanged events.
Public property Permission The application’s level of access to the location service.
Public property Position The most recent position obtained from the location service.
Public property Status The status of the location service.
Top
  Name Description
Public method Dispose() Releases managed and unmanaged resources used by the GeoCoordinateWatcher and stops the acquisition of data from the location service.
Protected method Dispose(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 method Equals (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the GeoCoordinateWatcher is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnPositionChanged Raises the PositionChanged event.
Protected method OnPositionStatusChanged Raises the PositionChanged event.
Protected method OnPropertyChanged Raises the PropertyChanged event for the GeoCoordinateWatcher class.
Public method Start() Starts the acquisition of data from the location service.
Public method Start(Boolean) Starts the acquisition of data from the location service.
Public method Stop Stops the acquisition of data from the location service.
Public method ToString (Inherited from Object.)
Public method TryStart Attempts 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
  Name Description
Public event PositionChanged Occurs when the location service detects a change in position.
Public event StatusChanged Occurs when the status of the location service changes.
Top
  Name Description
Explicit interface implemetation Private event INotifyPropertyChanged.PropertyChanged Occurs 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)