Skip to main content
←API Reference ←com.nianticspatial.nsdk.playback ←PlaybackDatasetLoader

loadDataset

Loads the dataset: reads capture JSON from this source and returns a [PlaybackDataset] that uses this loader for on-demand frame loading.

Declaration​

open fun loadDataset(): PlaybackDataset?

Summary​

Loads the dataset: reads capture JSON from this source and returns a PlaybackDataset that uses this loader for on-demand frame loading.

Returns​

The dataset, or null if JSON is missing or invalid.


Overload​

open fun loadDataset(imageDecoder: (ByteArray) -> Bitmap?): PlaybackDataset?

Summary​

Loads the dataset with a custom image decoder (e.g. { null } in unit tests to avoid BitmapFactory not mocked).