类 EaseImageCache.ImageCacheParams
- java.lang.Object
-
- io.agora.chat.uikit.widget.video.EaseImageCache.ImageCacheParams
-
- 封闭类:
- EaseImageCache
public static class EaseImageCache.ImageCacheParams extends java.lang.ObjectA holder class that contains cache parameters.
-
-
字段概要
字段 修饰符和类型 字段 说明 intcompressQualitybooleaninitDiskCacheOnCreateintmemCacheSizebooleanmemoryCacheEnabled
-
构造器概要
构造器 构造器 说明 ImageCacheParams()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidsetMemCacheSizePercent(float percent)Sets the memory cache size based on a percentage of the max available VM memory.
-
-
-
方法详细资料
-
setMemCacheSizePercent
public void setMemCacheSizePercent(float percent)
Sets the memory cache size based on a percentage of the max available VM memory. Eg. setting percent to 0.2 would set the memory cache to one fifth of the available memory. ThrowsIllegalArgumentExceptionif percent is < 0.01 or > .8. memCacheSize is stored in kilobytes instead of bytes as this will eventually be passed to construct a LruCache which takes an int in its constructor.This value should be chosen carefully based on a number of factors Refer to the corresponding Android Training class for more discussion: http://developer.android.com/training/displaying-bitmaps/
- 参数:
percent- Percent of available app memory to use to size memory cache
-
-