transitionx / in.arunkumarsampath.transitionx.transition / TransitionBuilder / customProperties

customProperties

inline fun customProperties(action: Transition.() -> Unit): Unit

Builder to set custom properties to be built Transition object. In the action block, transition is received as the lambda receiver and it is possible to directly set any custom properties on the transition.

This is useful when you want access a custom transition's properties not provided by this builder.

    constraintLayout.prepareTransition {
        customTransition<MyCustomTransition> {
            customProperties {
                myCustomProperty = 100
            }
        }
    }
    // Layout changes