Input

interface Input

Defines the safe render area model that is available to be read from by the processor.

Functions

Link copied to clipboard
abstract fun subscribeTo(onSafeRenderAreaAvailable: Consumer<Rect>): Closeable

Subscribes to the provided onSafeRenderAreaAvailable to be notified when a new safe render area Rect is available for this input. The submitted Rect area is considered to be relative to the currently attached, largest ImageProcessor.Output's rendered area. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.