补充文件缓存预加载接口prefetchToFileCache,以及ImageKnifeOption属性isCacheable、onlyRetrieveFromCache

Signed-off-by: zgf8268 <zenggaofeng2@h-partners.com>
This commit is contained in:
zgf8268 2024-04-27 16:23:48 +08:00
parent 0df4f8d6ef
commit aea4ce80f3
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ struct TestPrefetchToFileCachePage {
}
async preload(url:string) {
let fileCachePath = await ImageKnife.getInstance().prefetchToFileCache(url)
console.log("文件缓存的路径是:"+ fileCachePath)
console.log("preload-fileCachePath=="+ fileCachePath)
}
build() {
Column() {