SpatialEntity SpatialEntity SpatialEntity SpatialEntity 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 : sealed class SpatialEntity
struct winrt::Windows::Perception::Spatial::SpatialEntity
public sealed class SpatialEntity
Public NotInheritable Class SpatialEntity
var spatialEntity = new spatialEntity(spatialAnchor, propertySet);
Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Important

The SpatialEntityStore approach of synchronizing spatial anchors between devices is not currently supported. Consider using Azure Spatial Anchors instead.

Constructors

SpatialEntity(SpatialAnchor) SpatialEntity(SpatialAnchor) SpatialEntity(SpatialAnchor) SpatialEntity(SpatialAnchor) SpatialEntity(SpatialAnchor)

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

SpatialEntity(SpatialAnchor, ValueSet) SpatialEntity(SpatialAnchor, ValueSet) SpatialEntity(SpatialAnchor, ValueSet) SpatialEntity(SpatialAnchor, ValueSet) SpatialEntity(SpatialAnchor, ValueSet)

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

Properties

Anchor Anchor Anchor Anchor Anchor

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

Id Id Id Id Id

Gets the globally-unique ID for this spatial entity.

Properties Properties Properties Properties Properties

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