Package 

Class ImageResizeMode


  • 
    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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toScaleType

         static ScalingUtils.ScaleType toScaleType(@Nullable() String resizeModeValue)

        Converts JS resize modes into {@code ScalingUtils.ScaleType}. 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.