setOnDepthFrameCallback

abstract fun setOnDepthFrameCallback(onDepthFrame: (depth: Depth) -> Unit?)

Sets the callback called on thread every time the Camera produces a new Depth frame, or removes it with null. The callback must dispose the Depth.