abstract class ViewOscillator : KeyCycleOscillator


Provide the engine for executing cycles. KeyCycleOscillator

Summary

Public constructors

Public functions

java-static ViewOscillator!

Create a spline that manipulates a specific property of a view

abstract Unit
setProperty(view: View!, t: Float)

Set the property of that view

Inherited functions

From androidx.constraintlayout.core.motion.utils.KeyCycleOscillator
Float
get(t: Float)
CurveFit!
Float
getSlope(position: Float)
java-static KeyCycleOscillator!
makeWidgetCycle(attribute: String!)
Unit
setCustom(custom: Any!)
Unit
setPoint(
    framePosition: Int,
    shape: Int,
    waveString: String!,
    variesBy: Int,
    period: Float,
    offset: Float,
    phase: Float,
    value: Float
)

sets a oscillator wave point

Unit
setPoint(
    framePosition: Int,
    shape: Int,
    waveString: String!,
    variesBy: Int,
    period: Float,
    offset: Float,
    phase: Float,
    value: Float,
    custom: Any!
)

sets a oscillator wave point

Unit
setProperty(widget: MotionWidget!, t: Float)
Unit
setType(type: String!)
Unit
setup(pathLength: Float)
String!
Boolean

Public constructors

ViewOscillator

Added in 2.2.0-rc01
ViewOscillator()

Public functions

makeSpline

Added in 2.2.0-rc01
java-static fun makeSpline(str: String!): ViewOscillator!

Create a spline that manipulates a specific property of a view

Parameters
str: String!

the property to manipulate

Returns
ViewOscillator!

setProperty

Added in 2.2.0-rc01
abstract fun setProperty(view: View!, t: Float): Unit

Set the property of that view

Parameters
view: View!
t: Float