MeshDownloaderSession
↳ extends SessionBase
Declaration
class MeshDownloaderSessionSummary
Creates a Mesh Downloader instance. The Mesh Downloader allows you to retrieve mesh geometry and textures for VPS locations.
Properties
Functions
| Name | Type | Summary |
|---|---|---|
| configure | void | Configures the on-disk mesh cache. Downloaded geometry and textures are cached per graph node, so revisiting a location reads from disk instead of the CDN, and an interrupted download resumes where it stopped rather than starting over. Cached content never goes stale: a re-run of the mapping pipeline publishes new node ids, so an id always names the same geometry. Caching is off until this is called. It may be called again later. A changed budget applies at once, to downloads already in progress too. Disabling only affects downloads started afterward; one already in progress keeps the cache it started with. |
| create | void | - |
| download | AsyncResult<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. |
| downloadByAsset | Flow<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 once all chunks have been delivered. Any failure is emitted as a terminal [NSDKResult.Error] whose code is the relevant[MeshDownloaderError], ending the flow. |
| onDestroy | void | - |
| onInit | void | - |