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 イベントをトリガーするためにエミュレートされた場所を手動で変更する必要があります。

適用対象

こちらもご覧ください