VisibilityPropagation

abstract class VisibilityPropagation : TransitionPropagation
kotlin.Any
   ↳ androidx.transition.TransitionPropagation
   ↳ androidx.transition.VisibilityPropagation

Base class for TransitionPropagations that care about View Visibility and the center position of the View.

Summary

Public constructors

Base class for TransitionPropagations that care about View Visibility and the center position of the View.

Public methods
open Int

Returns android.view.View#getVisibility() for the View at the time the values were captured.

open Unit

open Int

Returns the View's center y coordinate, relative to the screen, at the time the values were captured.

open Array<String!>!

open Int

Returns the View's center x coordinate, relative to the screen, at the time the values were captured.

Inherited functions

Public constructors

<init>

VisibilityPropagation()

Base class for TransitionPropagations that care about View Visibility and the center position of the View.

Public methods

getViewVisibility

open fun getViewVisibility(values: TransitionValues!): Int

Returns android.view.View#getVisibility() for the View at the time the values were captured.

Parameters
values TransitionValues!: The TransitionValues captured at the start or end of the Transition.
Return
Int: android.view.View#getVisibility() for the View at the time the values were captured.

captureValues

open fun captureValues(values: TransitionValues!): Unit

getViewY

open fun getViewY(values: TransitionValues!): Int

Returns the View's center y coordinate, relative to the screen, at the time the values were captured.

Parameters
values TransitionValues!: The TransitionValues captured at the start or end of the Transition.
Return
Int: the View's center y coordinate, relative to the screen, at the time the values were captured.

getPropagationProperties

open fun getPropagationProperties(): Array<String!>!

getViewX

open fun getViewX(values: TransitionValues!): Int

Returns the View's center x coordinate, relative to the screen, at the time the values were captured.

Parameters
values TransitionValues!: The TransitionValues captured at the start or end of the Transition.
Return
Int: the View's center x coordinate, relative to the screen, at the time the values were captured.