Geolocator.PositionChanged Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Dimunculkan ketika lokasi diperbarui.
// 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)
Jenis Acara
Persyaratan Windows
Kemampuan aplikasi |
location
ID_CAP_LOCATION [Windows Phone]
|
Keterangan
Anda dapat mengakses informasi tentang peristiwa dengan objek PositionChangedEventArgs yang diteruskan ke penanganan aktivitas Anda.
Tip
Saat menggunakan emulator, Anda harus mengubah lokasi yang ditimulasi secara manual untuk memicu peristiwa PositionChanged.