Partilhar via


XRAnchorTransferBatch.ExportAsync(XRAnchorTransferBatch) Method

Definition

Exports any anchors added via AddAnchor(TrackableId, String) into a Stream for transfer. Use ImportAsync(Stream) for reading this Stream.

public static System.Threading.Tasks.Task<System.IO.Stream> ExportAsync (Microsoft.MixedReality.OpenXR.XRAnchorTransferBatch anchorTransferBatch);
static member ExportAsync : Microsoft.MixedReality.OpenXR.XRAnchorTransferBatch -> System.Threading.Tasks.Task<System.IO.Stream>
Public Shared Function ExportAsync (anchorTransferBatch As XRAnchorTransferBatch) As Task(Of Stream)

Parameters

anchorTransferBatch
XRAnchorTransferBatch

The anchor transfer batch instance to export from. This instance should have had anchors added before attempting export.

Returns

A task which, when completed, will contain the exported array, or null if the export was unsuccessful.

Applies to