ComponentOp

fun interface ComponentOp

ComponentOp

component operations represent simple procedures that are ran before and after every render cycle. They can support animations and verification.

Since

1.6.1

Inheritors

Types

Link copied to clipboard
abstract class Animatable<S : Component>(self: S, animation: Animation? = null, var onFinish: S.() -> Unit? = null) : ComponentOp

Class to represent an operation that can be applied on a component that modifies it in some way.

Functions

Link copied to clipboard
abstract fun apply()

Apply the operation, this is called before the component is rendered.

Link copied to clipboard
open fun exclusive(): Boolean

If this is true, when this drawable operation is attempted to be added, if one is already present, instead of replacing it, it will be ignored.

Link copied to clipboard
open fun unapply(): Boolean

Unapply the operation. this is called after the component is rendered.

Link copied to clipboard
open fun verify(): Boolean

override this function to verify that this operation is valid, which is run before it is applied. (default: always true)