TransitionBuilder


class TransitionBuilder


Builder class for creating Transition programmatically.

Summary

Public constructors

Public functions

java-static MotionScene.Transition!
buildTransition(
    scene: MotionScene!,
    transitionId: Int,
    startConstraintSetId: Int,
    startConstraintSet: ConstraintSet!,
    endConstraintSetId: Int,
    endConstraintSet: ConstraintSet!
)

Builder for a basic transition that transition from the startConstraintSet to the endConstraintSet.

java-static Unit

It validates if the motion layout is setup correctly or not.

Public constructors

TransitionBuilder

Added in 2.2.0
TransitionBuilder()

Public functions

buildTransition

Added in 2.2.0
java-static fun buildTransition(
    scene: MotionScene!,
    transitionId: Int,
    startConstraintSetId: Int,
    startConstraintSet: ConstraintSet!,
    endConstraintSetId: Int,
    endConstraintSet: ConstraintSet!
): MotionScene.Transition!

Builder for a basic transition that transition from the startConstraintSet to the endConstraintSet.

Parameters
scene: MotionScene!
transitionId: Int

a unique id to represent the created transition

startConstraintSetId: Int
startConstraintSet: ConstraintSet!
endConstraintSetId: Int
endConstraintSet: ConstraintSet!

validate

Added in 2.2.0
java-static fun validate(layout: MotionLayout!): Unit

It validates if the motion layout is setup correctly or not. Use this for debugging purposes.