共用方式為


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

備註

注意

使用 SpatialAnchorTransferManager 的本機錨點傳輸比 Azure Spatial Anchors提供較不強固的錨點召回率,且此方法不支援 iOS 和 Android 裝置。

方法

RequestAccessAsync()

要求應用程式存取以匯出或匯入空間錨點。 這需要 spatialPerception 功能。

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

將空間錨點匯出至資料流程,稍後可以在另一部裝置上匯入。 這可讓這兩部裝置在使用者周圍的環境中推斷相同的位置。

TryImportAnchorsAsync(IInputStream)

匯入先前從另一部裝置匯出的空間錨點資料流程。 這可讓這兩部裝置在使用者周圍的環境中推斷相同的位置。

適用於