Skip to main content
API Reference SwiftyNsdk BundlePlaybackDatasetLoader

loadImage

Loads an image from the data source....

Declaration

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

Summary

Loads an image from the data source.
This method must be overridden by subclasses. The base implementation will crash if called.
Called on-demand when a frame image is requested.
- Parameter imageName: The filename of the image (e.g., "frame_00000000.jpg")
- Returns: The image as a CGImage, or nil if loading fails
- Important: Subclasses must override this method. Do not call the base implementation.


ON THIS PAGE