Dela via


SpatialEntityWatcher.Updated Event

Definition

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.

Applies to