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/SidePropagation#pubctors) \| [Methods](https://developer.android.com/reference/android/transition/SidePropagation#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/transition/SidePropagation#inhmethods)

# SidePropagation

*** ** * ** ***

` public class SidePropagation `   
` ` ` ` ` extends https://developer.android.com/reference/android/transition/VisibilityPropagation ` ` `

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

<br />

*** ** * ** ***

A `TransitionPropagation` that propagates based on the distance to the side and, orthogonally, the distance to epicenter. If the transitioning View is visible in the start of the transition, then it will transition sooner when closer to the side and later when farther. If the view is not visible in the start of the transition, then it will transition later when closer to the side and sooner when farther from the edge. This is the default TransitionPropagation used with `https://developer.android.com/reference/android/transition/Slide`.

## Summary

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

| ### Public methods ||
|---|---|
| ` long` | ` https://developer.android.com/reference/android/transition/SidePropagation#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. |
| ` void` | ` https://developer.android.com/reference/android/transition/SidePropagation#setPropagationSpeed(float)(float propagationSpeed) ` Sets the speed at which transition propagation happens, relative to the duration of the Transition. |
| ` void` | ` https://developer.android.com/reference/android/transition/SidePropagation#setSide(int)(int side) ` Sets the side that is used to calculate the transition propagation. |

### Inherited methods

From class ` https://developer.android.com/reference/android/transition/VisibilityPropagation ` ` void` ` https://developer.android.com/reference/android/transition/VisibilityPropagation#captureValues(android.transition.TransitionValues)(https://developer.android.com/reference/android/transition/TransitionValues values) `

Captures the values in the start or end scene for the properties that this transition propagation monitors.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/transition/VisibilityPropagation#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.
` int` ` https://developer.android.com/reference/android/transition/VisibilityPropagation#getViewVisibility(android.transition.TransitionValues)(https://developer.android.com/reference/android/transition/TransitionValues values) `

Returns `https://developer.android.com/reference/android/view/View#getVisibility()` for the View at the time the values were captured.
` int` ` https://developer.android.com/reference/android/transition/VisibilityPropagation#getViewX(android.transition.TransitionValues)(https://developer.android.com/reference/android/transition/TransitionValues values) `

Returns the View's center x coordinate, relative to the screen, at the time the values were captured.
` int` ` https://developer.android.com/reference/android/transition/VisibilityPropagation#getViewY(android.transition.TransitionValues)(https://developer.android.com/reference/android/transition/TransitionValues values) `

Returns the View's center y coordinate, relative to the screen, at the time the values were captured.
From class ` https://developer.android.com/reference/android/transition/TransitionPropagation ` ` 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.
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

### SidePropagation

```
public SidePropagation ()
```

<br />

<br />

## Public methods

### getStartDelay

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

```
public 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 /> |

### setPropagationSpeed

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

```
public void setPropagationSpeed (float propagationSpeed)
```

Sets the speed at which transition propagation happens, relative to the duration of the Transition. A `propagationSpeed` of 1 means that a View centered at the side set in `https://developer.android.com/reference/android/transition/SidePropagation#setSide(int)` and View centered at the opposite edge will have a difference in start delay of approximately the duration of the Transition. A speed of 2 means the start delay difference will be approximately half of the duration of the transition. A value of 0 is illegal, but negative values will invert the propagation.

<br />

| Parameters ||
|---|---|
| `propagationSpeed` | `float`: The speed at which propagation occurs, relative to the duration of the transition. A speed of 4 means it works 4 times as fast as the duration of the transition. May not be 0. <br /> |

### setSide

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

```
public void setSide (int side)
```

Sets the side that is used to calculate the transition propagation. If the transitioning View is visible in the start of the transition, then it will transition sooner when closer to the side and later when farther. If the view is not visible in the start of the transition, then it will transition later when closer to the side and sooner when farther from the edge. The default is `https://developer.android.com/reference/android/view/Gravity#BOTTOM`.

<br />

| Parameters ||
|---|---|
| `side` | `int`: The side that is used to calculate the transition propagation. Must be one of `https://developer.android.com/reference/android/view/Gravity#LEFT`, `https://developer.android.com/reference/android/view/Gravity#TOP`, `https://developer.android.com/reference/android/view/Gravity#RIGHT`, `https://developer.android.com/reference/android/view/Gravity#BOTTOM`, `https://developer.android.com/reference/android/view/Gravity#START`, or `https://developer.android.com/reference/android/view/Gravity#END`. Value is one of the following: - `https://developer.android.com/reference/android/view/Gravity#LEFT` - `https://developer.android.com/reference/android/view/Gravity#TOP` - `https://developer.android.com/reference/android/view/Gravity#RIGHT` - `https://developer.android.com/reference/android/view/Gravity#BOTTOM` - `https://developer.android.com/reference/android/view/Gravity#START` - `https://developer.android.com/reference/android/view/Gravity#END` |