dispose

abstract fun dispose()

Eagerly disposes the native resources this output holds (its threads, analyzers, delegates, sounds...), like VisionCamera's HybridObject.dispose().

After calling dispose, this output can no longer be used: remove it from its CameraSession first. Calling it more than once is a no-op.

Calling it is not required, as unreferenced outputs are garbage collected (that is what VisionCamera's hooks rely on). Eagerly disposing an output is purely optional, and should be done with caution.