Skip to main content
←API Reference ←NSDK ←NSDKMeshDownloader

configure


Declaration​

func configure(with configuration: Configuration) throws

Summary​

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.

Throws​

  • NSDKError.invalidArgument if caching was enabled with a zero byte budget.

Parameters​

NameTypeSummary
configurationConfiguration
Cache settings to apply.