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

getDepthDataAtIndex

Loads depth data (Float32 binary) at [index] on-demand. Returns null if this frame has no depth.

Declaration​

@Deprecated( "Will be removed in a future release. Use getPlaybackFrameAtIndex(index).depthData.", level = DeprecationLevel.WARNING ) fun getDepthDataAtIndex(index: Int): ByteArray?

Summary​

Loads depth data (Float32 binary) at index on-demand. Returns null if this frame has no depth.

Throws​

  • PlaybackDatasetError.IndexOutOfBounds — if index is invalid.

Parameters​

NameTypeSummary
indexInt
-