Processor

Defines a processor that Session exposes to its users.

Functions

connectInput
Link copied to clipboard
abstract fun connectInput(input: AudioProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: ImageProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: LegalProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: LocationProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: MediaProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: SafeRenderAreaProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
abstract fun connectInput(input: UserProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
open fun connectInput(input: ImageProcessor.Input, options: Set<ImageProcessor.Input.Option>): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
connectOutput
Link copied to clipboard
abstract fun connectOutput(output: ImageProcessor.Output): Closeable
Connects the provided output to this processor and returns a Closeable to release the connection when required.
open fun connectOutput(output: ImageProcessor.Output, options: Set<ImageProcessor.Output.Option>): Closeable
Connects the provided output to this processor and returns a Closeable to release the connection when required.
observe
Link copied to clipboard
abstract fun observe(onResult: Consumer<LegalProcessor.Input.Result>): Closeable
Notifies the provided onResult callback when this LegalProcessor obtains a Input.Result until the returned Closeable is closed.
observeRequiredCapabilities
Link copied to clipboard
abstract fun observeRequiredCapabilities(onCapabilitiesRequested: Consumer<Set<ImageProcessor.Input.Capability>>): Closeable
Takes in onCapabilitiesRequested that will be notified when image processing operations require additional data from connected Input.
waitFor
Link copied to clipboard
abstract fun waitFor(requestUpdate: LegalProcessor.Input.RequestUpdate, onResult: Consumer<LegalProcessor.Input.Result>)
Notifies the provided onResult callback when this LegalProcessor handles a Input.Result.