Interface that can be implemented for providing accessing location data and receiving location updates.
| C# | Visual Basic |
public interface IGeoPositionWatcher<T>
Public Interface IGeoPositionWatcher(Of T)
- T
- The type of the object that contains the location data.
| All Members | Methods | Properties | Events | ||
| Icon | Member | Description |
|---|---|---|
| Position |
Gets the location data.
| |
| PositionChanged | ||
| Start()()()() |
Initiate the acquisition of location data.
| |
| Start(Boolean) |
Start acquiring location data, specifying whether or not to suppress prompting for permissions.
This method returns synchronously.
| |
| Status |
Gets the status of location data.
| |
| StatusChanged | ||
| Stop()()()() |
Stop acquiring location data.
| |
| TryStart(Boolean, TimeSpan) |
Start acquiring location data, specifying an initialization timeout.
This method returns synchronously.
|
Equivalent to System.Device.Location.IGeoPositionWatcher<T> in the .NET Framework 4
The GeoCoordinateWatcher class implements IGeoPositionWatcher<(Of <(<'T>)>)>, using GeoCoordinate as the type parameter.