Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/transition/TransitionPropagation#pubctors) \| [Methods](https://developer.android.com/reference/android/transition/TransitionPropagation#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/transition/TransitionPropagation#inhmethods)

# TransitionPropagation

*** ** * ** ***

` public abstract class TransitionPropagation `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.transition.TransitionPropagation |

Known direct subclasses [VisibilityPropagation](https://developer.android.com/reference/android/transition/VisibilityPropagation) [VisibilityPropagation](https://developer.android.com/reference/android/transition/VisibilityPropagation) Base class for `TransitionPropagation`s that care about View Visibility and the center position of the View. Known indirect subclasses [CircularPropagation](https://developer.android.com/reference/android/transition/CircularPropagation), [SidePropagation](https://developer.android.com/reference/android/transition/SidePropagation) [CircularPropagation](https://developer.android.com/reference/android/transition/CircularPropagation) A propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists. [SidePropagation](https://developer.android.com/reference/android/transition/SidePropagation) A `TransitionPropagation` that propagates based on the distance to the side and, orthogonally, the distance to epicenter.   

*** ** * ** ***

Extend `TransitionPropagation` to customize start delays for Animators created in `https://developer.android.com/reference/android/transition/Transition#createAnimator(android.view.ViewGroup,%20android.transition.TransitionValues,%20android.transition.TransitionValues)`. A Transition such as `https://developer.android.com/reference/android/transition/Explode` defaults to using `https://developer.android.com/reference/android/transition/CircularPropagation` and Views closer to the epicenter will move out of the scene later and into the scene sooner than Views farther from the epicenter, giving the appearance of inertia. With no TransitionPropagation, all Views will react simultaneously to the start of the transition.
**See also:**

- `https://developer.android.com/reference/android/transition/Transition#setPropagation(android.transition.TransitionPropagation)`
- `https://developer.android.com/reference/android/transition/Transition#getEpicenter()`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/transition/TransitionPropagation#TransitionPropagation()() ` |

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/transition/TransitionPropagation#captureValues(android.transition.TransitionValues)(https://developer.android.com/reference/android/transition/TransitionValues transitionValues) ` Captures the values in the start or end scene for the properties that this transition propagation monitors. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/transition/TransitionPropagation#getPropagationProperties()() ` Returns the set of property names stored in the `https://developer.android.com/reference/android/transition/TransitionValues` object passed into `https://developer.android.com/reference/android/transition/TransitionPropagation#captureValues(android.transition.TransitionValues)` that this transition propagation cares about for the purposes of preventing duplicate capturing of property values. |
| ` abstract long` | ` https://developer.android.com/reference/android/transition/TransitionPropagation#getStartDelay(android.view.ViewGroup,%20android.transition.Transition,%20android.transition.TransitionValues,%20android.transition.TransitionValues)(https://developer.android.com/reference/android/view/ViewGroup sceneRoot, https://developer.android.com/reference/android/transition/Transition transition, https://developer.android.com/reference/android/transition/TransitionValues startValues, https://developer.android.com/reference/android/transition/TransitionValues endValues) ` Called by Transition to alter the Animator start delay. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### TransitionPropagation

```
public TransitionPropagation ()
```

<br />

<br />

## Public methods

### captureValues

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void captureValues (TransitionValues transitionValues)
```

Captures the values in the start or end scene for the properties that this transition propagation monitors. These values are then passed as the startValues or endValues structure in a later call to `https://developer.android.com/reference/android/transition/TransitionPropagation#getStartDelay(android.view.ViewGroup,%20android.transition.Transition,%20android.transition.TransitionValues,%20android.transition.TransitionValues)`. The main concern for an implementation is what the properties are that the transition cares about and what the values are for all of those properties. The start and end values will be compared later during the `https://developer.android.com/reference/android/transition/TransitionPropagation#getStartDelay(android.view.ViewGroup,%20android.transition.Transition,%20android.transition.TransitionValues,%20android.transition.TransitionValues)`. method to determine the start delay.

Subclasses must implement this method. The method should only be called by the transition system; it is not intended to be called from external classes.

<br />

<br />

| Parameters ||
|---|---|
| `transitionValues` | `TransitionValues`: The holder for any values that the Transition wishes to store. Values are stored in the `values` field of this TransitionValues object and are keyed from a String value. For example, to store a view's rotation value, a transition might call `transitionValues.values.put("appname:transitionname:rotation", view.getRotation())`. The target view will already be stored in the transitionValues structure when this method is called. <br /> |

### getPropagationProperties

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract String[] getPropagationProperties ()
```

Returns the set of property names stored in the `https://developer.android.com/reference/android/transition/TransitionValues` object passed into `https://developer.android.com/reference/android/transition/TransitionPropagation#captureValues(android.transition.TransitionValues)` that this transition propagation cares about for the purposes of preventing duplicate capturing of property values.

A `TransitionPropagation` must override this method to prevent duplicate capturing of values and must contain at least one

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | An array of property names as described in the class documentation for `https://developer.android.com/reference/android/transition/TransitionValues`. <br /> |

### getStartDelay

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract long getStartDelay (ViewGroup sceneRoot, 
                Transition transition, 
                TransitionValues startValues, 
                TransitionValues endValues)
```

Called by Transition to alter the Animator start delay. All start delays will be adjusted such that the minimum becomes zero.

<br />

| Parameters ||
|---|---|
| `sceneRoot` | `ViewGroup`: The root of the View hierarchy running the transition. <br /> |
| `transition` | `Transition`: The transition that created the Animator <br /> |
| `startValues` | `TransitionValues`: The values for a specific target in the start scene. <br /> |
| `endValues` | `TransitionValues`: The values for the target in the end scene. <br /> |

| Returns ||
|---|---|
| `long` | A start delay to use with the Animator created by `transition`. The delay will be offset by the minimum delay of all `TransitionPropagation`s used in the Transition so that the smallest delay will be 0. Returned values may be negative. <br /> |