Partager via


SpatialLocator.PositionalTrackingDeactivating Événement

Définition

Se produit lorsque le système d’emplacement spatial de l’appareil se désactive en raison de l’inactivité.

// Register
event_token PositionalTrackingDeactivating(TypedEventHandler<SpatialLocator, SpatialLocatorPositionalTrackingDeactivatingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialLocator::PositionalTrackingDeactivating_revoker PositionalTrackingDeactivating(auto_revoke_t, TypedEventHandler<SpatialLocator, SpatialLocatorPositionalTrackingDeactivatingEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialLocator,SpatialLocatorPositionalTrackingDeactivatingEventArgs> PositionalTrackingDeactivating;
function onPositionalTrackingDeactivating(eventArgs) { /* Your code */ }
spatialLocator.addEventListener("positionaltrackingdeactivating", onPositionalTrackingDeactivating);
spatialLocator.removeEventListener("positionaltrackingdeactivating", onPositionalTrackingDeactivating);
- or -
spatialLocator.onpositionaltrackingdeactivating = onPositionalTrackingDeactivating;
Public Custom Event PositionalTrackingDeactivating As TypedEventHandler(Of SpatialLocator, SpatialLocatorPositionalTrackingDeactivatingEventArgs) 

Type d'événement

S’applique à