SpatialSurfaceObserver.ObservedSurfacesChanged 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 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
TypedEventHandler<SpatialSurfaceObserver,IInspectable>
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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: