Session

interface Session : Closeable

Entry point to all CameraKit features. To obtain Session implementations must provide methods to get a new instance of Builder which exposes options to customize Session instance once it is built by calling Builder.build. Once done using an instance of Session, Session.close must be called to avoid leaking resources.

Types

Builder
Link copied to clipboard
interface Builder
Companion
Link copied to clipboard
object Companion
Provides a way for implementations to attach static extension functions to the Session interface for better discoverability.
Processor
Link copied to clipboard
Defines a processor that Session exposes to its users.

Functions

close
Link copied to clipboard
abstract override fun close()
Closes all resources allocated for this Session.

Properties

adjustments
Link copied to clipboard
abstract val adjustments: AdjustmentsComponent
Provides an AdjustmentsComponent that contains all accessible features of adjustments.
lenses
Link copied to clipboard
abstract val lenses: LensesComponent
Provides a LensesComponent that contains all accessible features of lenses.
processor
Link copied to clipboard
abstract val processor: Session.Processor
Provides a Processor to run this Session's image, audio and other data processing operations over a connected input with the results observed through any connected outputs.