net / com.drake.net / kotlinx.coroutines.CoroutineScope / DownloadImage
DownloadImage¶
fun CoroutineScope.DownloadImage(url:
String
, with:
Int
= -1, height:
Int
= -1): Deferred<
File
>
异步下载图片, 图片宽高要求要么同时指定要么同时不指定 要求依赖 Glide
Parameters¶
url
- 请求图片的绝对路径
with
- 图片宽度
height
- 图片高度