# TransitionValues

# TransitionValues

Artifact:[androidx.transition:transition](https://developer.android.com/jetpack/androidx/releases/transition)  
[View Source](https://cs.android.com/search?q=file:androidx/transition/TransitionValues.java+class:androidx.transition.TransitionValues)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/transition#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/transition/TransitionValues "View this page in Java")

<br />

```
class TransitionValues
```

<br />

*** ** * ** ***

Data structure which holds cached values for the transition. The view field is the target which all of the values pertain to. The values field is a map which holds information for fields according to names selected by the transitions. These names should be unique to avoid clobbering values stored by other transitions, such as the convention project:transition_name:property_name. For example, the platform might store a property "alpha" in a transition "Fader" as "android:fader:alpha".

These values are cached during the[captureStartValues](https://developer.android.com/reference/kotlin/androidx/transition/Transition#captureStartValues(androidx.transition.TransitionValues))capture} phases of a scene change, once when the start values are captured and again when the end values are captured. These start/end values are then passed into the transitions via the for[createAnimator](https://developer.android.com/reference/kotlin/androidx/transition/Transition#createAnimator(android.view.ViewGroup,androidx.transition.TransitionValues,androidx.transition.TransitionValues))method.

## Summary

|                                                                                                                                                     ### Public constructors                                                                                                                                                      |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[TransitionValues](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#TransitionValues())~~`()` **This function is deprecated.** Use[TransitionValues](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#TransitionValues(android.view.View))instead <br /> |
| [TransitionValues](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#TransitionValues(android.view.View))`(view: `[View](https://developer.android.com/reference/android/view/View.html)`)`                                                                                                    |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#hashCode())`()`                                                                                                  |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)   | [toString](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#toString())`()`                                                                                                  |

|                                                                                                                                                                           ### Public properties                                                                                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)`)`[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!>!` | [values](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#values()) The set of values tracked by transitions for this scene |
| [View](https://developer.android.com/reference/android/view/View.html)`!`                                                                                                                                                                                                                                                                                                 | [view](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#view()) The View with these values.                                 |

## Public constructors

### TransitionValues

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/transition#1.0.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/transition#1.1.0)  

```
[TransitionValues](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#TransitionValues())()
```
| **This function is deprecated.**   
|
Use[TransitionValues](https://developer.android.com/reference/kotlin/androidx/transition/TransitionValues#TransitionValues(android.view.View))instead  

### TransitionValues

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/transition#1.1.0)  

```
TransitionValues(view: View)
```  

## Public functions

### equals

```
fun equals(other: Any!): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String
```  

## Public properties

### values

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/transition#1.0.0)  

```
val values: (Mutable)Map<String!, Any!>!
```

The set of values tracked by transitions for this scene  

### view

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/transition#1.0.0)  

```
val view: View!
```

The View with these values. Should not be null.