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 booleancontains(float x, float y)voiddraw(android.graphics.Canvas canvas)android.graphics.RectFgetBounds()Get the window position for the prompt text.voidprepare(PromptOptions options, boolean clipToBounds, android.graphics.Rect clipBounds)Recalculates the primary and secondary text positions.voidupdate(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)
-
-