TransitionBuilder


public class TransitionBuilder


Builder class for creating Transition programmatically.

Summary

Public constructors

Public methods

static MotionScene.Transition
buildTransition(
    MotionScene scene,
    int transitionId,
    int startConstraintSetId,
    ConstraintSet startConstraintSet,
    int endConstraintSetId,
    ConstraintSet endConstraintSet
)

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

static void

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

Public constructors

TransitionBuilder

Added in 2.2.0
public TransitionBuilder()

Public methods

buildTransition

Added in 2.2.0
public static MotionScene.Transition buildTransition(
    MotionScene scene,
    int transitionId,
    int startConstraintSetId,
    ConstraintSet startConstraintSet,
    int endConstraintSetId,
    ConstraintSet endConstraintSet
)

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

Parameters
MotionScene scene
int transitionId

a unique id to represent the created transition

int startConstraintSetId
ConstraintSet startConstraintSet
int endConstraintSetId
ConstraintSet endConstraintSet

validate

Added in 2.2.0
public static void validate(MotionLayout layout)

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