rememberDepthOutput

fun rememberDepthOutput(options: DepthFrameOutputOptions = DepthFrameOutputOptions(), onDepthFrameDropped: (reason: FrameDroppedReason) -> Unit? = null, onDepth: (depth: Depth) -> Unit?): CameraDepthFrameOutput

Create a CameraDepthFrameOutput with the given options, kept across recompositions and recreated when the options change (the equivalent of VisionCamera's useDepthOutput).

onDepth runs on the output's thread for every Depth frame, and must dispose it as soon as possible. onDepthFrameDropped is called when a Depth frame has been dropped.