PhysicsBuilder

open class PhysicsBuilder<T> : AnimationBuilder<T>
kotlin.Any
   ↳ androidx.animation.AnimationBuilder<T>
   ↳ androidx.animation.PhysicsBuilder

PhysicsBuilder takes in the configuration of a spring as its constructor parameters.

Summary

Public constructors

<init>(dampingRatio: Float = DampingRatioNoBouncy, stiffness: Float = StiffnessVeryLow)

PhysicsBuilder takes in the configuration of a spring as its constructor parameters.

Properties

Float

Damping ratio of the spring.

Float

Stiffness of the spring.

Public constructors

<init>

PhysicsBuilder(
    dampingRatio: Float = DampingRatioNoBouncy,
    stiffness: Float = StiffnessVeryLow)

PhysicsBuilder takes in the configuration of a spring as its constructor parameters.

Parameters
dampingRatio: Float = DampingRatioNoBouncy Damping ratio of the spring. Defaults to DampingRatioNoBouncy
stiffness: Float = StiffnessVeryLow Stiffness of the spring. Defaults to StiffnessVeryLow

Properties

dampingRatio

var dampingRatio: Float

Damping ratio of the spring. Defaults to DampingRatioNoBouncy

stiffness

var stiffness: Float

Stiffness of the spring. Defaults to StiffnessVeryLow