CameraOutput

Represents an output of a CameraSession, for example a preview, a photo or a video output.

An output holds native resources (threads, analyzers, delegates...), which are released when it is garbage collected or, eagerly, when it is disposed. It implements AutoCloseable, so it can be used with use { }.

See also

Inheritors

Properties

Link copied to clipboard
abstract val currentResolution: Size?

The resolution this output is currently streaming at, or null if it is not connected yet.

Link copied to clipboard
abstract val mediaType: MediaType

The MediaType of this output.

Link copied to clipboard

The orientation of the content produced by this output.

Functions

Link copied to clipboard
open override fun close()

Same as dispose, to use a CameraOutput with use { }.

Link copied to clipboard
abstract fun dispose()

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