Επεξεργασία

Κοινή χρήση μέσω


IGeoPositionWatcher<T> Interface

Definition

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

generic <typename T>
public interface class IGeoPositionWatcher
public interface IGeoPositionWatcher<T>
type IGeoPositionWatcher<'T> = interface
Public Interface IGeoPositionWatcher(Of T)

Type Parameters

T

The type of the object that contains the location data.

Derived

Remarks

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

Properties

Position

Gets the location data.

Status

Gets the status of location data.

Methods

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.

Stop()

Stop acquiring location data.

TryStart(Boolean, TimeSpan)

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

Events

PositionChanged

Occurs when the Position property has changed.

StatusChanged

Occurs when the Status property changes.

Applies to

See also