SpatialAnchorExporter SpatialAnchorExporter SpatialAnchorExporter SpatialAnchorExporter SpatialAnchorExporter Class

Definition

Allows apps to export spatial anchors for sharing and relocalization across devices, so that both devices can reason about the same locations in their users' surroundings.

public : sealed class SpatialAnchorExporter
struct winrt::Windows::Perception::Spatial::SpatialAnchorExporter
public sealed class SpatialAnchorExporter
Public NotInheritable Class SpatialAnchorExporter
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)
Capabilities
spatialPerception

Remarks

Note

This type supports Azure Spatial Anchors, which enables you to create durable cloud-backed spatial anchors that your app can then locate across multiple HoloLens, iOS and Android devices.

Methods

GetAnchorExportSufficiencyAsync(SpatialAnchor, SpatialAnchorExportPurpose) GetAnchorExportSufficiencyAsync(SpatialAnchor, SpatialAnchorExportPurpose) GetAnchorExportSufficiencyAsync(SpatialAnchor, SpatialAnchorExportPurpose) GetAnchorExportSufficiencyAsync(SpatialAnchor, SpatialAnchorExportPurpose) GetAnchorExportSufficiencyAsync(SpatialAnchor, SpatialAnchorExportPurpose)

Returns information about whether a spatial anchor's data is sufficient for sharing or relocalization.

GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Gets the default SpatialAnchorExporter instance for the current device.

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

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

TryExportAnchorAsync(SpatialAnchor, SpatialAnchorExportPurpose, IOutputStream) TryExportAnchorAsync(SpatialAnchor, SpatialAnchorExportPurpose, IOutputStream) TryExportAnchorAsync(SpatialAnchor, SpatialAnchorExportPurpose, IOutputStream) TryExportAnchorAsync(SpatialAnchor, SpatialAnchorExportPurpose, IOutputStream) TryExportAnchorAsync(SpatialAnchor, SpatialAnchorExportPurpose, IOutputStream)

Exports a spatial anchor to a stream for sharing or relocalization. This allows multiple devices to reason about the same locations in their users' surroundings.