Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Geolocator.PositionChanged Event

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Raised when the location is updated.

// Register
event_token PositionChanged(TypedEventHandler<Geolocator, PositionChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void PositionChanged(event_token const* cookie) const;

// Revoke with event_revoker
Geolocator::PositionChanged_revoker PositionChanged(auto_revoke_t, TypedEventHandler<Geolocator, PositionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<Geolocator,PositionChangedEventArgs> PositionChanged;
function onPositionChanged(eventArgs) { /* Your code */ }
geolocator.addEventListener("positionchanged", onPositionChanged);
geolocator.removeEventListener("positionchanged", onPositionChanged);
- or -
geolocator.onpositionchanged = onPositionChanged;
Public Custom Event PositionChanged As TypedEventHandler(Of Geolocator, PositionChangedEventArgs) 

Event Type

Windows requirements

Requirements Description
App capabilities
location

Remarks

You can access information about the event with the PositionChangedEventArgs object that is passed to your event handler.

Tip

When using an emulator, you must manually change the emulated location in order to trigger the PositionChanged event.

Applies to

See also


Feedback

Was this page helpful?