kyrie / com.github.alexjlockwood.kyrie / Animation / BidirectionalValueTransformer

BidirectionalValueTransformer

interface BidirectionalValueTransformer<T, V> : Animation.ValueTransformer<T, V>

Interface that can transform type T to another type V and back again. This is necessary when the value types of an animation are different from the property type. This interface is only needed when working with an Animation with no explicitly set start value and that has been transformed using transform.

Parameters

T - The animation's original value type.

V - The animation's transformed value type.

Functions

transformBack

abstract fun transformBack(value: V): T

Transforms the output type back to the input type. *

Inherited Functions

transform

abstract fun transform(value: T): V

Transforms a value from one type to another.