Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IGeoPositionWatcher<T> Interface

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Interface that can be implemented for providing accessing location data and receiving location updates.

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.

NameDescription
System_CAPS_pubpropertyPosition

Gets the location data.

System_CAPS_pubpropertyStatus

Gets the status of location data.

NameDescription
System_CAPS_pubmethodStart()

Initiate the acquisition of location data.

System_CAPS_pubmethodStart(Boolean)

Start acquiring location data, specifying whether or not to suppress prompting for permissions. This method returns synchronously.

System_CAPS_pubmethodStop()

Stop acquiring location data.

System_CAPS_pubmethodTryStart(Boolean, TimeSpan)

Start acquiring location data, specifying an initialization timeout. This method returns synchronously.

NameDescription
System_CAPS_pubeventPositionChanged

Occurs when the Position property has changed.

System_CAPS_pubeventStatusChanged

Occurs when the Status property changes.

The GeoCoordinateWatcher class implements IGeoPositionWatcher<T>, using GeoCoordinate as the type parameter.

.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft