GuidanceNavigator.UserLocationLost Событие

Определение

Происходит при потере расположения пользователя.

Примечание

Этот API доступен не для всех приложений Windows. Если ваша учетная запись разработчика не специально подготовлена корпорацией Майкрософт, вызовы этого API завершатся ошибкой во время выполнения. За дополнительными сведениями о пространстве имен Windows.Services.Maps.Guidance обратитесь к представителю группы по работе с учетными записями Майкрософт.

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

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

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

Тип события

Применяется к