Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

TypeConverter

abstract class TypeConverter<T : Any!, V : Any!>
kotlin.Any
   ↳ androidx.core.animation.TypeConverter

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.

Summary

Public constructors
<init>(@NonNull fromClass: Class<T>, @NonNull toClass: Class<V>)

Constructor for creating a type converter instance that converts type T to another type V.

Public methods
abstract V
convert(@NonNull value: T)

Converts a value from one type to another.

Public constructors

<init>

TypeConverter(
    @NonNull fromClass: Class<T>,
    @NonNull toClass: Class<V>)

Constructor for creating a type converter instance that converts type T to another type V.

Parameters
fromClass Class<T>: class of the value type that feeds into the converter
toClass Class<V>: class of the value type expected out of the converter

Public methods

convert

@NonNull abstract fun convert(@NonNull value: T): V

Converts a value from one type to another.

Parameters
value T: The Object to convert.
Return
V A value of type V, converted from value.