TypeConverter
Artifact: androidx.core:core-animation
public abstract class TypeConverter<T, V>
BidirectionalTypeConverter |
Abstract base class used convert type T to another type V and back again. |
Abstract base class used convert type T to another type V. This is necessary when the value types of in animation are different from the property type.
| Parameters | |
|---|---|
<T> |
type T. It can be converted to type V |
<V> |
type V. It can be converted from type T |
| See also | |
|---|---|
setConverter |
Summary
Public constructors |
|---|
TypeConverter(@NonNull Class<T> fromClass, @NonNull Class<V> toClass)Constructor for creating a type converter instance that converts type T to another type V. |
Public methods |
|
|---|---|
abstract @NonNull V |
Converts a value from one type to another. |
Public constructors
TypeConverter
public TypeConverter(@NonNull Class<T> fromClass, @NonNull Class<V> toClass)
Constructor for creating a type converter instance that converts type T to another type V.