-
public class ImageResizeMode
Converts JS resize modes into Android-specific scale type.
-
-
Method Summary
Modifier and Type Method Description static ScalingUtils.ScaleType
toScaleType(@Nullable() String resizeModeValue)
Converts JS resize modes into {@code ScalingUtils.ScaleType}
.static Shader.TileMode
toTileMode(@Nullable() String resizeModeValue)
Converts JS resize modes into {@code Shader.TileMode}
.static ScalingUtils.ScaleType
defaultValue()
This is the default as per web and iOS. static Shader.TileMode
defaultTileMode()
-
-
Method Detail
-
toScaleType
static ScalingUtils.ScaleType toScaleType(@Nullable() String resizeModeValue)
Converts JS resize modes into
{@code ScalingUtils.ScaleType}
. See{@code ImageResizeMode.js}
.
-
toTileMode
static Shader.TileMode toTileMode(@Nullable() String resizeModeValue)
Converts JS resize modes into
{@code Shader.TileMode}
. See{@code ImageResizeMode.js}
.
-
defaultValue
static ScalingUtils.ScaleType defaultValue()
This is the default as per web and iOS. We want to be consistent across platforms.
-
defaultTileMode
static Shader.TileMode defaultTileMode()
-
-
-
-