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

# SidePropagation

*** ** * ** ***

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

```
open class SidePropagation : VisibilityPropagation
```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||
| ↳ | [android.transition.TransitionPropagation](https://developer.android.com/reference/kotlin/android/transition/TransitionPropagation) |||
|   | ↳ | [android.transition.VisibilityPropagation](https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation) ||
|   |   | ↳ | [android.transition.SidePropagation](https://developer.android.com/reference/kotlin/android/transition/SidePropagation#) |

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/kotlin/android/transition/Slide`.

## Summary

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

| Public methods ||
|---|---|
| open [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/transition/SidePropagation#getStartDelay(android.view.ViewGroup,%20android.transition.Transition,%20android.transition.TransitionValues,%20android.transition.TransitionValues)(sceneRoot: https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#!, transition: https://developer.android.com/reference/kotlin/android/transition/Transition!, startValues: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!, endValues: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!)` Called by Transition to alter the Animator start delay. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/transition/SidePropagation#setPropagationSpeed(kotlin.Float)(propagationSpeed: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)` Sets the speed at which transition propagation happens, relative to the duration of the Transition. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/transition/SidePropagation#setSide(kotlin.Int)(side: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Sets the side that is used to calculate the transition propagation. |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation#captureValues(android.transition.TransitionValues)(values: https://developer.android.com/reference/kotlin/android/transition/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/kotlin/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/kotlin/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 /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation#getPropagationProperties()()` Returns the set of property names stored in the `https://developer.android.com/reference/kotlin/android/transition/TransitionValues` object passed into `https://developer.android.com/reference/kotlin/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 /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation#getViewVisibility(android.transition.TransitionValues)(values: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!)` Returns `https://developer.android.com/reference/kotlin/android/view/View.html#getVisibility()` for the View at the time the values were captured. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation#getViewX(android.transition.TransitionValues)(values: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!)` Returns the View's center x coordinate, relative to the screen, at the time the values were captured. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/transition/VisibilityPropagation#getViewY(android.transition.TransitionValues)(values: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!)` Returns the View's center y coordinate, relative to the screen, at the time the values were captured. <br /> | ||
| From class `https://developer.android.com/reference/kotlin/android/transition/TransitionPropagation` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/android/transition/TransitionPropagation#getStartDelay(android.view.ViewGroup,%20android.transition.Transition,%20android.transition.TransitionValues,%20android.transition.TransitionValues)(sceneRoot: https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#!, transition: https://developer.android.com/reference/kotlin/android/transition/Transition!, startValues: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!, endValues: https://developer.android.com/reference/kotlin/android/transition/TransitionValues!)` Called by Transition to alter the Animator start delay. All start delays will be adjusted such that the minimum becomes zero. <br /> | ||

## Public constructors

### SidePropagation

```
SidePropagation()
```

## Public methods

### getStartDelay

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

```
open fun getStartDelay(
    sceneRoot: ViewGroup!, 
    transition: Transition!, 
    startValues: TransitionValues!, 
    endValues: TransitionValues!
): Long
```

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

| Parameters ||
|---|---|
| `sceneRoot` | [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#)!: The root of the View hierarchy running the transition. |
| `transition` | [Transition](https://developer.android.com/reference/kotlin/android/transition/Transition)!: The transition that created the Animator |
| `startValues` | [TransitionValues](https://developer.android.com/reference/kotlin/android/transition/TransitionValues)!: The values for a specific target in the start scene. |
| `endValues` | [TransitionValues](https://developer.android.com/reference/kotlin/android/transition/TransitionValues)!: The values for the target in the end scene. |

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | 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. |

### setPropagationSpeed

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

```
open fun setPropagationSpeed(propagationSpeed: Float): Unit
```

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/kotlin/android/transition/SidePropagation#setSide(kotlin.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.

| Parameters ||
|---|---|
| `propagationSpeed` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): 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. |

### setSide

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

```
open fun setSide(side: Int): Unit
```

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/kotlin/android/view/Gravity.html#BOTTOM:kotlin.Int`.

| Parameters ||
|---|---|
| `side` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The side that is used to calculate the transition propagation. Must be one of `https://developer.android.com/reference/kotlin/android/view/Gravity.html#LEFT:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/view/Gravity.html#TOP:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/view/Gravity.html#RIGHT:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/view/Gravity.html#BOTTOM:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/view/Gravity.html#START:kotlin.Int`, or `https://developer.android.com/reference/kotlin/android/view/Gravity.html#END:kotlin.Int`. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#LEFT:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#TOP:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#RIGHT:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#BOTTOM:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#START:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/Gravity.html#END:kotlin.Int` |