Chain

@RequiresApi(value = 31)
data class Chain(val outer: LithoRenderEffect, val inner: LithoRenderEffect) : LithoRenderEffect

A LithoRenderEffect that composes inner with outer, such that the results of inner are treated as the source bitmap passed to outer, i.e.

result = outer(inner(source))

Consumers should favor explicit chaining of LithoRenderEffect instances at creation time rather than using chain effect. Chain effects are useful for situations where the input or output are provided from elsewhere and the input or output LithoRenderEffect need to be changed.

Parameters

outer

LithoRenderEffect that consumes the output of inner as its input

inner

LithoRenderEffect that is consumed as input by outer

See RenderEffect.createChainEffect

Constructors

Link copied to clipboard
constructor(outer: LithoRenderEffect, inner: LithoRenderEffect)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRenderEffect(): RenderEffect

Creates a RenderEffect instance from this LithoRenderEffect.