Skip to main content

ARDK for Android/com.nianticlabs.ardk.scanning/ScanningSession/exportScan

exportScan

[androidJvm]
fun exportScan(jsonMetadata: String?, exportAsVideo: Boolean = true): String?

Exports the scan data as an archive file.

This method processes the saved scan data and exports it to a standard archive format that can be used with external 3D processing tools or Niantic's VPS map.

Note: This function is blocking and may take a while to execute. See RecordingExporter for a non-blocking option.

Return​

The path of the archive file, if the export was successful, nil if otherwise. Export failure indicates something was wrong with the saved scan.

Parameters​

androidJvm

jsonMetadataOptional JSON object string to be included in the as metadata.
exportAsVideoIf true, the RGB frames in the scan will be exported as an .mp4 video. If false, they will be individual image files.

See also​

ScanningSession.saveCurrentScan
ScanningSession.getCurrentSaveInfo