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

getFrameImageAtIndex

Loads the frame image at [index] on-demand (and caches it). Returns decoded bitmap, or null if no image.

Declaration​

fun getFrameImageAtIndex(index: Int): android.graphics.Bitmap?

Summary​

Loads the frame image at index on-demand (and caches it). Returns decoded bitmap, or null if no image.

Throws​

  • PlaybackDatasetError.IndexOutOfBounds — if index is invalid.
  • PlaybackDatasetError.ImageLoadFailed — if the image file cannot be loaded.