CircularRevealWidget.CircularRevealEvaluator

public static class CircularRevealWidget.CircularRevealEvaluator
extends Object implements TypeEvaluator<CircularRevealWidget.RevealInfo>

java.lang.Object
   ↳ com.google.android.material.circularreveal.CircularRevealWidget.CircularRevealEvaluator


A TypeEvaluator that performs type interpolation between two CircularRevealWidget.RevealInfos. This encapsulates an animated circular reveal.

Each value in the intermediary RevealInfo is simply interpolated from the corresponding values from the start and end RevealInfo.

Summary

Fields

public static final TypeEvaluator<CircularRevealWidget.RevealInfo> CIRCULAR_REVEAL

Public constructors

CircularRevealEvaluator()

Public methods

CircularRevealWidget.RevealInfo evaluate(float fraction, CircularRevealWidget.RevealInfo startValue, CircularRevealWidget.RevealInfo endValue)

Inherited methods

Fields

CIRCULAR_REVEAL

public static final TypeEvaluator<CircularRevealWidget.RevealInfo> CIRCULAR_REVEAL

Public constructors

CircularRevealEvaluator

public CircularRevealEvaluator ()

Public methods

evaluate

public CircularRevealWidget.RevealInfo evaluate (float fraction, 
                CircularRevealWidget.RevealInfo startValue, 
                CircularRevealWidget.RevealInfo endValue)

Parameters
fraction float

startValue CircularRevealWidget.RevealInfo

endValue CircularRevealWidget.RevealInfo

Returns
CircularRevealWidget.RevealInfo