setRevealFraction

open fun setRevealFraction(@FloatRange(from = 0.0, to = 1.0) fraction: Float)

A fraction that controls the scale of the tooltip and the opacity of its text.

When fraction is 0.0, the tooltip will be completely hidden, as fraction approaches 1.0, the tooltip will scale up from its pointer and animate in its text.

This method is typically called from within an animator's update callback. The animator in this case is what is driving the animation while this method handles configuring the tooltip's appearance at each frame in the animation.

Parameters

fraction

A value between 0.0 and 1.0 that defines how "shown" the tooltip will be.