Skip to main content

CLASS

BundlePlaybackDatasetLoader

public class BundlePlaybackDatasetLoader: PlaybackDatasetLoader

A loader that retrieves playback dataset data from the app bundle.

This is the default implementation for loading datasets from Bundle.main.

Methods​

init(directory:bundle:)​

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

Initializes a bundle loader with the specified bundle.

  • Parameter bundle: The bundle to load resources from (defaults to Bundle.main)

Parameters​

NameDescription
bundleThe bundle to load resources from (defaults to Bundle.main)

loadCaptureJSON()​

public override func loadCaptureJSON() -> Data?

loadImage(imageName:)​

public override func loadImage(imageName: String) -> CGImage?

Parameters​

NameDescription
imageNameThe filename of the image (e.g., “frame_00000000.jpg”)

info()​

public override func info() -> String