public class TextDelegate
extends java.lang.Object
getText(String).| Constructor and Description |
|---|
TextDelegate(LottieAnimationView animationView) |
TextDelegate(LottieDrawable drawable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText(java.lang.String input)
Override this to replace the animation text with something dynamic.
|
java.lang.String |
getTextInternal(java.lang.String input) |
void |
invalidateAllText()
Invalidates all cached strings
|
void |
invalidateText(java.lang.String input)
Invalidates a cached string with the given input.
|
void |
setCacheText(boolean cacheText)
Sets whether or not
TextDelegate will cache (memoize) the results of getText. |
void |
setText(java.lang.String input,
java.lang.String output)
Update the text that will be rendered for the given input text.
|
public TextDelegate(LottieAnimationView animationView)
public TextDelegate(LottieDrawable drawable)
public java.lang.String getText(java.lang.String input)
public void setText(java.lang.String input,
java.lang.String output)
public void setCacheText(boolean cacheText)
TextDelegate will cache (memoize) the results of getText.
If this isn't necessary then set it to false.public void invalidateText(java.lang.String input)
public void invalidateAllText()
public final java.lang.String getTextInternal(java.lang.String input)