Jaa


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 ref class SpatialAnchorExporter sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialAnchorExporter final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialAnchorExporter
Public NotInheritable Class SpatialAnchorExporter
Inheritance
Object Platform::Object IInspectable SpatialAnchorExporter
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)
App 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)

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

GetDefault()

Gets the default SpatialAnchorExporter instance for the current device.

RequestAccessAsync()

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

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.

Applies to