SpatialAnchorTransferManager 类

定义

用于在设备之间传输空间定位点的静态方法,以便两个设备可以在其用户环境中推理相同的位置。

public ref class SpatialAnchorTransferManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialAnchorTransferManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Deprecated("Use SpatialEntityStore instead of SpatialAnchorTransferManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
class SpatialAnchorTransferManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class SpatialAnchorTransferManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Deprecated("Use SpatialEntityStore instead of SpatialAnchorTransferManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static class SpatialAnchorTransferManager
Public Class SpatialAnchorTransferManager
继承
Object Platform::Object IInspectable SpatialAnchorTransferManager
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
应用功能
spatialPerception

注解

注意

与 Azure 空间定位点相比 ,使用 SpatialAnchorTransferManager 的本地 定位点传输提供不太可靠的定位点召回,此方法不支持 iOS 和 Android 设备。

方法

RequestAccessAsync()

请求应用的访问权限以导出或导入空间定位点。 这需要 spatialPerception 功能。

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

将空间定位点导出到流,稍后可以在另一台设备上导入该流。 这允许两个设备推理其用户周围环境中的相同位置。

TryImportAnchorsAsync(IInputStream)

导入以前从另一台设备导出的空间定位点流。 这允许两个设备推理其用户周围环境中的相同位置。

适用于