SpatialEntityStore Class
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.
Represents a shared pool of spatial entities, synchronized automatically among the participants in a remote session.
public ref class SpatialEntityStore sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialEntityStore final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialEntityStore
Public NotInheritable Class SpatialEntityStore
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
Important
The SpatialEntityStore approach of synchronizing spatial anchors between devices is not currently supported. Consider using Azure Spatial Anchors instead.
Properties
IsSupported |
Gets whether spatial entity sharing is supported on this system. |
Methods
CreateEntityWatcher() |
Gets a watcher that lets an app observe when participants add, update or remove entities in the store. |
RemoveAsync(SpatialEntity) |
Removes a spatial entity from the store for all participants. |
SaveAsync(SpatialEntity) |
Saves a new or updated spatial entity into the store, to be synchronized with all participants. |
TryGet(RemoteSystemSession) |
Establishes or retrieves an automatically-synchronized pool of spatial entities for a remote session. |