public abstract class ViewOscillator extends KeyCycleOscillator


Provide the engine for executing cycles. KeyCycleOscillator

Summary

Nested types

Public constructors

Public methods

static ViewOscillator

Create a spline that manipulates a specific property of a view

abstract void
setProperty(View view, float t)

Set the property of that view

Inherited methods

From androidx.constraintlayout.core.motion.utils.KeyCycleOscillator
float
get(float t)
CurveFit
float
getSlope(float position)
static KeyCycleOscillator
void
setCustom(Object custom)
void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value
)

sets a oscillator wave point

void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value,
    Object custom
)

sets a oscillator wave point

void
setProperty(MotionWidget widget, float t)
void
void
setup(float pathLength)
String
boolean

Public constructors

ViewOscillator

Added in 2.2.0-alpha13
public ViewOscillator()

Public methods

makeSpline

Added in 2.2.0-alpha13
public static ViewOscillator makeSpline(String str)

Create a spline that manipulates a specific property of a view

Parameters
String str

the property to manipulate

Returns
ViewOscillator

setProperty

Added in 2.2.0-alpha13
public abstract void setProperty(View view, float t)

Set the property of that view

Parameters
View view
float t