Added in API level 21

VisibilityPropagation


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

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

Summary

Public constructors

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

VisibilityPropagation

VisibilityPropagation()

Public methods

captureValues

Added in API level 21
open fun captureValues(values: TransitionValues!): Unit
Parameters
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.

getPropagationProperties

Added in API level 21
open fun getPropagationProperties(): Array<String!>!
Return
Array<String!>! An array of property names as described in the class documentation for TransitionValues.

getViewVisibility

Added in API level 21
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

Added in API level 21
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

Added in API level 21
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.