Class PromptText
- java.lang.Object
-
- uk.co.samuelwall.materialtaptargetprompt.extras.PromptText
-
public class PromptText extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PromptText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(float x, float y)
void
draw(android.graphics.Canvas canvas)
android.graphics.RectF
getBounds()
Get the window position for the prompt text.void
prepare(PromptOptions options, boolean clipToBounds, android.graphics.Rect clipBounds)
Recalculates the primary and secondary text positions.void
update(PromptOptions options, float revealModifier, float alphaModifier)
-
-
-
Method Detail
-
getBounds
@NonNull public android.graphics.RectF getBounds()
Get the window position for the prompt text.- Returns:
- The prompt text bounds.
-
prepare
public void prepare(@NonNull PromptOptions options, boolean clipToBounds, @NonNull android.graphics.Rect clipBounds)
Recalculates the primary and secondary text positions.
-
update
public void update(@NonNull PromptOptions options, float revealModifier, float alphaModifier)
-
draw
public void draw(@NonNull android.graphics.Canvas canvas)
-
contains
public boolean contains(float x, float y)
-
-