SpatialAnchorTransferManager SpatialAnchorTransferManager SpatialAnchorTransferManager SpatialAnchorTransferManager SpatialAnchorTransferManager Class

Definition

Static methods for transferring spatial anchors between devices, so that both devices can reason about the same locations in their users' surroundings.

public : static class SpatialAnchorTransferManager
static struct winrt::Windows::Perception::Spatial::SpatialAnchorTransferManager
public static class SpatialAnchorTransferManager
Public Shared Class SpatialAnchorTransferManager
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
Capabilities
spatialPerception

Remarks

Note

Local anchor transfers using SpatialAnchorTransferManager provide less robust anchor recall than Azure Spatial Anchors, and iOS and Android devices are not supported by this approach.

Methods

RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync()

Requests access for an app to export or import spatial anchors. This requires the spatialPerception capability.

TryExportAnchorsAsync(IIterable<IKeyValuePair<String, SpatialAnchor>>, IOutputStream) TryExportAnchorsAsync(IIterable<IKeyValuePair<String, SpatialAnchor>>, IOutputStream) TryExportAnchorsAsync(IIterable<IKeyValuePair<String, SpatialAnchor>>, IOutputStream) TryExportAnchorsAsync(IIterable<IKeyValuePair<String, SpatialAnchor>>, IOutputStream) TryExportAnchorsAsync(IIterable<IKeyValuePair<String, SpatialAnchor>>, IOutputStream)

Exports spatial anchors to a stream, which can later be imported on another device. This allows both devices to reason about the same locations in their users' surroundings.

TryImportAnchorsAsync(IInputStream) TryImportAnchorsAsync(IInputStream) TryImportAnchorsAsync(IInputStream) TryImportAnchorsAsync(IInputStream) TryImportAnchorsAsync(IInputStream)

Imports a stream of spatial anchors that was previously exported from another device. This allows both devices to reason about the same locations in their users' surroundings.