Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Subsystems.Playback

PlaybackCacheClient

Queries and edits the playback cache of the running NSDK session.

Declaration​

public class PlaybackCacheClient

Remarks​

The cache exists while XR is initialized. Every call reads the current session, so one client keeps working across XR restarts, and throws InvalidOperationException while no session runs.


Constructors​

public PlaybackCacheClient()

Summary​

Creates a client for the running NSDK session's playback cache.


Methods​

NameTypeSummary
ClearCachevoid
Deletes every cached recording. Close every dataset opened from the cache first.
DeleteCachedvoid
Deletes the scan's cached recording. Close every dataset opened from the scan first.
GetCachedPlaybacksIReadOnlyList<CachedPlayback>
Lists the scans in the cache, in no particular order. Makes no network call.
IsCachedbool
Whether the scan's recording is fully downloaded and extracted. Makes no network call.
async OpenAsyncTask<PlaybackDataset>
Opens the scan's recording, downloading it into the cache unless it is already there.
The caller closes the dataset.