Added in API level 21

TypeConverter


abstract class TypeConverter<T : Any!, V : Any!>
kotlin.Any
   ↳ android.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
TypeConverter(fromClass: Class<T>!, toClass: Class<V>!)

Public methods
abstract V
convert(value: T)

Converts a value from one type to another.

Public constructors

TypeConverter

Added in API level 21
TypeConverter(
    fromClass: Class<T>!,
    toClass: Class<V>!)

Public methods

convert

Added in API level 21
abstract fun convert(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.