Skip to main content
←API Reference ←com.nianticspatial.nsdk.mesh

MeshDownloaderSession

↳ extends SessionBase

Declaration​

class MeshDownloaderSession

Summary​

Creates a Mesh Downloader instance. The Mesh Downloader allows you to retrieve mesh geometry and textures for VPS locations.


Properties​

NameTypeSummary
ardkHandleLong
-

Functions​

NameTypeSummary
createvoid
-
downloadAsyncResult<Array<MeshDownloaderData>, MeshDownloaderError>
[Deprecated] Asynchronously downloads a mesh for a given location payload.
This function suspends execution until the download operation is complete,
has failed, or has timed out.
downloadByAssetFlow<NSDKResult<MeshDownloaderData, MeshDownloaderError>>
Streams mesh chunks for a VPS map asset, sorted closest-first by GPS position.
MeshDownloader resolves the mesh sibling for [vpsMapAssetId] via SitesManager, then
downloads chunks. The flow completes normally when all chunks have been delivered
([MeshDownloaderError.NONE]) or when the cumulative size cap is hit
([MeshDownloaderError.SIZE_LIMIT_REACHED]). Other failures are emitted as
[NSDKResult.Error].
onDestroyvoid
-
onInitvoid
-