Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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 Unit

open Array<String!>!

open Int

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

open Int

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

open Int

Returns the View's center y 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

captureValues

open fun captureValues(values: TransitionValues!): Unit

getPropagationProperties

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

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.

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.

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.