MotionTiming

public class MotionTiming
extends Object

java.lang.Object
   ↳ com.google.android.material.animation.MotionTiming


A representation of timing for an animation.

Summary

Public constructors

MotionTiming(long delay, long duration)
MotionTiming(long delay, long duration, TimeInterpolator interpolator)

Public methods

void apply(Animator animator)
boolean equals(Object o)
long getDelay()
long getDuration()
TimeInterpolator getInterpolator()
int getRepeatCount()
int getRepeatMode()
int hashCode()
String toString()

Inherited methods

Public constructors

MotionTiming

public MotionTiming (long delay, 
                long duration)

Parameters
delay long

duration long

MotionTiming

public MotionTiming (long delay, 
                long duration, 
                TimeInterpolator interpolator)

Parameters
delay long

duration long

interpolator TimeInterpolator

Public methods

apply

public void apply (Animator animator)

Parameters
animator Animator

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getDelay

public long getDelay ()

Returns
long

getDuration

public long getDuration ()

Returns
long

getInterpolator

public TimeInterpolator getInterpolator ()

Returns
TimeInterpolator

getRepeatCount

public int getRepeatCount ()

Returns
int

getRepeatMode

public int getRepeatMode ()

Returns
int

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String