From 47548a32a05bc8d84cc5b75d7de247a90b47c2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=A2=E6=9D=A1=E4=BE=A0?= Date: Thu, 28 Mar 2024 08:17:42 +0000 Subject: [PATCH] =?UTF-8?q?update=20README.md.=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3isUrlExist=20=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 面条侠 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 327873a..13c1e04 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,8 @@ request.skipMemoryCache(true) | preload(request: RequestOption) | request: RequestOption | 根据用户配置参数具体执行预加载流程 | | pauseRequests() | | 全局暂停请求 | | resumeRequests() | | 全局恢复暂停 | +| isUrlExist() | request: RequestOption | 跳过网络,从缓存和磁盘中获取图片是否存在,参数类型request.setCacheType(CacheType.Cache),如果是从缓存中获取需要传入图片的大小setImageViewSize()| + ### 缓存策略相关 @@ -368,6 +370,13 @@ request.skipMemoryCache(true) | ScaleType.AUTO_WIDTH | int | 设置高的时候,图片宽度自适应 | | ScaleType.AUTO | int | 没有设置宽和高,图片按照自身宽高显示 | +### CacheType类型展示效果 + +| 使用方法 | 类型 | 策略描述 | +|-------------------------|-----|-----------------------------------| +| CacheType.Cache | int | 缓存| +| CacheType.Disk | int | 磁盘| + ### 图片变换相关 | 使用方法 | 类型 | 相关描述 |