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.
T
- The animation's original value type.
V
- The animation's transformed value type.
abstract fun transformBack(value: V): T
Transforms the output type back to the input type. * |
abstract fun transform(value: T): V
Transforms a value from one type to another. |