Поделиться через


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) 

Тип события

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