onFrameReceived

abstract fun onFrameReceived(block: (frame: ColorBuffer) -> Unit)(source)

Will execute the supplied block of code with each most recent frame from the depth camera as an input.

Parameters

block

the code to execute when the new frame is received.