Share via


Geolocator.PositionChanged 이벤트

정의

위치가 업데이트될 때 발생합니다.

// 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) 

이벤트 유형

Windows 요구 사항

앱 기능
location ID_CAP_LOCATION [Windows Phone]

설명

이벤트 처리기에 전달되는 PositionChangedEventArgs 개체를 사용하여 이벤트에 대한 정보에 액세스할 수 있습니다.

에뮬레이터를 사용하는 경우 PositionChanged 이벤트를 트리거하려면 에뮬레이트된 위치를 수동으로 변경해야 합니다.

적용 대상

추가 정보