IGeoPositionWatcher(T) Interface

IGeoPositionWatcher<T> Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the interface for resolving geographic positions. Implemented by the GeoCoordinateWatcher class.

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)

public interface IGeoPositionWatcher<T>

Type Parameters

T

The type of the object that contains the location data.

The IGeoPositionWatcher<T> type exposes the following members.

  NameDescription
Public propertyPositionThe most recent position obtained from the location service.
Public propertyStatusThe status of the location service.
Top

  NameDescription
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 methodTryStartAttempts to start the acquisition of data from the location service.
Top

  NameDescription
Public eventPositionChangedOccurs when the location service detects a change in position.
Public eventStatusChangedOccurs when the status of the location service changes.
Top

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

ID_CAP_LOCATION

Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft