public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyTrimPathIfNeeded(android.graphics.Path path,
float startValue,
float endValue,
float offsetValue) |
static void |
applyTrimPathIfNeeded(android.graphics.Path path,
TrimPathContent trimPath) |
static void |
closeQuietly(java.io.Closeable closeable) |
static android.graphics.Path |
createPath(android.graphics.PointF startPoint,
android.graphics.PointF endPoint,
android.graphics.PointF cp1,
android.graphics.PointF cp2) |
static float |
getAnimationScale(android.content.Context context) |
static float |
getScale(android.graphics.Matrix matrix) |
static int |
getScreenHeight(android.content.Context context) |
static int |
getScreenWidth(android.content.Context context) |
static int |
hashFor(float a,
float b,
float c,
float d) |
static boolean |
isAtLeastVersion(LottieComposition composition,
int major,
int minor,
int patch) |
public static android.graphics.Path createPath(android.graphics.PointF startPoint,
android.graphics.PointF endPoint,
android.graphics.PointF cp1,
android.graphics.PointF cp2)
public static void closeQuietly(java.io.Closeable closeable)
public static int getScreenWidth(android.content.Context context)
public static int getScreenHeight(android.content.Context context)
public static float getScale(android.graphics.Matrix matrix)
public static void applyTrimPathIfNeeded(android.graphics.Path path,
TrimPathContent trimPath)
public static void applyTrimPathIfNeeded(android.graphics.Path path,
float startValue,
float endValue,
float offsetValue)
public static boolean isAtLeastVersion(LottieComposition composition, int major, int minor, int patch)
public static int hashFor(float a,
float b,
float c,
float d)
public static float getAnimationScale(android.content.Context context)