SpatialEntity Class

Definition

Represents a physical location in the user's surroundings and its metadata, which an app intends to share with other devices.

public ref class SpatialEntity sealed
class SpatialEntity sealed
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Perception.Spatial.ISpatialEntityFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[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 SpatialEntity
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Perception.Spatial.ISpatialEntityFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[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)]
[Windows.Foundation.Metadata.DualApiPartition(version=1)]
public sealed class SpatialEntity
function SpatialEntity(spatialAnchor, propertySet)
Public NotInheritable Class SpatialEntity
Inheritance
SpatialEntity
Attributes

Windows 10 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.

Constructors

SpatialEntity(SpatialAnchor)

Creates a new spatial entity to share the provided spatial anchor.

SpatialEntity(SpatialAnchor, ValueSet)

Creates a new spatial entity to share the provided spatial anchor and metadata.

Properties

Anchor

Gets the spatial anchor representing the shared location in the user's surroundings.

Id

Gets the globally-unique ID for this spatial entity.

Properties

Gets the key/value store of metadata for this spatial entity.

Applies to