Skip to main content
←API Reference ←NSDK

BundlePlaybackDatasetLoader

↳ inherits from PlaybackDatasetLoader

Declaration​

class BundlePlaybackDatasetLoader

Summary​

A loader that retrieves playback dataset data from the app bundle. This is the default implementation for loading datasets from Bundle.main. Frame images and depth data are loaded on-demand when requested.


Constructors​

init(directory: String, bundle: Bundle = .main)

Summary​

Initializes a bundle loader with the specified bundle.


Methods​

NameTypeSummary
override infoString
Returns details about the loader configuration.
override loadCaptureJSONData?
Loads the capture JSON data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
override loadDepthConfidenceData?
Loads depth confidence data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when confidence data is requested.
override loadDepthDataData?
Loads depth data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when depth data is requested.
override loadImageCGImage?
Loads an image from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when a frame image is requested.

Relationships​

conforms to: PlaybackDatasetSource