Share via


SpatialSurfaceObserver.ObservedSurfacesChanged Event

Definition

Occurs when the set of surface metadata observed within the bounding volume has changed.

// Register
event_token ObservedSurfacesChanged(TypedEventHandler<SpatialSurfaceObserver, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
SpatialSurfaceObserver::ObservedSurfacesChanged_revoker ObservedSurfacesChanged(auto_revoke_t, TypedEventHandler<SpatialSurfaceObserver, IInspectable const&> const& handler) const;
public event TypedEventHandler<SpatialSurfaceObserver,object> ObservedSurfacesChanged;
function onObservedSurfacesChanged(eventArgs) { /* Your code */ }
spatialSurfaceObserver.addEventListener("observedsurfaceschanged", onObservedSurfacesChanged);
spatialSurfaceObserver.removeEventListener("observedsurfaceschanged", onObservedSurfacesChanged);
- or -
spatialSurfaceObserver.onobservedsurfaceschanged = onObservedSurfacesChanged;
Public Custom Event ObservedSurfacesChanged As TypedEventHandler(Of SpatialSurfaceObserver, Object) 

Event Type

Windows requirements

App capabilities
spatialPerception

Remarks

When this event fires, call GetObservedSurfaces to get the latest set of surface metadata. Note that if no bounding volume has been set, the metadata set will be empty.

Applies to