Anchor Exporter Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Object IInspectable SpatialAnchorExporter
Windows 10, version 1809 (introduced in 10.0.17763.0)
Windows.Foundation.UniversalApiContract (introduced in v7.0)
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.
Returns information about whether a spatial anchor's data is sufficient for sharing or relocalization.
Gets the default SpatialAnchorExporter instance for the current device.
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.