SpatialEntityWatcher.Updated 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.
The event that is raised when an existing spatial entity has its metadata updated by a participant.
// Register
event_token Updated(TypedEventHandler<SpatialEntityWatcher, SpatialEntityUpdatedEventArgs const&> const& handler) const;
// Revoke with event_token
void Updated(event_token const* cookie) const;
// Revoke with event_revoker
SpatialEntityWatcher::Updated_revoker Updated(auto_revoke_t, TypedEventHandler<SpatialEntityWatcher, SpatialEntityUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialEntityWatcher,SpatialEntityUpdatedEventArgs> Updated;
function onUpdated(eventArgs) { /* Your code */ }
spatialEntityWatcher.addEventListener("updated", onUpdated);
spatialEntityWatcher.removeEventListener("updated", onUpdated);
- or -
spatialEntityWatcher.onupdated = onUpdated;
Public Custom Event Updated As TypedEventHandler(Of SpatialEntityWatcher, SpatialEntityUpdatedEventArgs)
Event Type
Remarks
Note that adjustments to the position of a spatial anchor that occur as the device learns more about its environment are not represented by this Updated event. Apps should react to changes to the anchor's coordinate system each frame, just as is necessary for local anchors.