SpatialAnchorExporter.TryExportAnchorAsync Method
Definition
Important
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.
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.
public:
virtual IAsyncOperation<bool> ^ TryExportAnchorAsync(SpatialAnchor ^ anchor, SpatialAnchorExportPurpose purpose, IOutputStream ^ stream) = TryExportAnchorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryExportAnchorAsync(SpatialAnchor const& anchor, SpatialAnchorExportPurpose const& purpose, IOutputStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryExportAnchorAsync(SpatialAnchor anchor, SpatialAnchorExportPurpose purpose, IOutputStream stream);
function tryExportAnchorAsync(anchor, purpose, stream)
Public Function TryExportAnchorAsync (anchor As SpatialAnchor, purpose As SpatialAnchorExportPurpose, stream As IOutputStream) As IAsyncOperation(Of Boolean)
Parameters
- anchor
- SpatialAnchor
The spatial anchor to export.
- purpose
- SpatialAnchorExportPurpose
The purpose of the export, sharing or relocalization.
- stream
- IOutputStream
The stream to export the anchor to.
Returns
Operation that triggers once the export has been attempted, providing true if the export succeeded; otherwise, false.
- Attributes
Windows requirements
App capabilities |
spatialPerception
|