Condividi tramite


GuidanceNavigator.UserLocationLost Evento

Definizione

Si verifica quando la posizione dell'utente è stata persa.

Nota

Questa API non è disponibile per tutte le app di Windows. A meno che l'account per sviluppatore non venga effettuato appositamente da Microsoft, le chiamate a questa API avranno esito negativo in fase di esecuzione. Per altre informazioni sullo spazio dei nomi Windows.Services.Maps.Guidance , rivolgersi al rappresentante del team dell'account Microsoft.

// 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) 

Tipo evento

Si applica a