SpatialEntityWatcher.Updated 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当现有空间实体由参与者更新其元数据时引发的事件。
// 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)
事件类型
注解
请注意,在设备了解其环境的详细信息时发生的对空间定位点位置的调整不会由此更新事件表示。 应用应对每个帧的定位点坐标系的更改做出响应,就像本地定位点所需的一样。