SpatialLocator.PositionalTrackingDeactivating Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the device's spatial location system is deactivating due to inactivity.
// 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)