Bagikan melalui


GuidanceNavigator.UserLocationRestored Kejadian

Definisi

Terjadi ketika lokasi pengguna telah dipulihkan.

Nota

API ini tidak tersedia untuk semua aplikasi Windows. Kecuali akun pengembang Anda disediakan secara khusus oleh Microsoft, panggilan ke API ini akan gagal pada runtime. Untuk informasi selengkapnya tentang namespace Windows.Services.Maps.Guidance, silakan bekerja sama dengan perwakilan Tim Akun Microsoft Anda.

// Register
event_token UserLocationRestored(TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
GuidanceNavigator::UserLocationRestored_revoker UserLocationRestored(auto_revoke_t, TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,object> UserLocationRestored;
function onUserLocationRestored(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("userlocationrestored", onUserLocationRestored);
guidanceNavigator.removeEventListener("userlocationrestored", onUserLocationRestored);
- or -
guidanceNavigator.onuserlocationrestored = onUserLocationRestored;
Public Custom Event UserLocationRestored As TypedEventHandler(Of GuidanceNavigator, Object) 

Jenis Acara

Berlaku untuk