SpatialSurfaceObserver.ObservedSurfacesChanged 事件

定义

在边界卷内观察到的图面元数据集更改时发生。

// 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) 

事件类型

Windows 要求

应用功能
spatialPerception

注解

当此事件触发时,调用 GetObservedSurfaces 以获取最新的图面元数据集。 请注意,如果未设置任何边界卷,则元数据集将为空。

适用于