setOnFrameCallback

abstract fun setOnFrameCallback(onFrame: (frame: Frame) -> Unit?)

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