From aecb76363d9eb49caa2fff51ed8498fc8e1bd2c0 Mon Sep 17 00:00:00 2001 From: lushi Date: Fri, 4 Mar 2022 11:19:59 +0800 Subject: [PATCH] add image cache js sdk Signed-off-by: lushi Change-Id: Iea6f0c18ccb7f9f6e824a03098cb2b9b868a2816 --- api/common/@system.app.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/api/common/@system.app.d.ts b/api/common/@system.app.d.ts index b9903af04c..ac62478131 100644 --- a/api/common/@system.app.d.ts +++ b/api/common/@system.app.d.ts @@ -115,4 +115,28 @@ export default class App { * @devices phone, tablet */ static requestFullWindow(options?: RequestFullWindowOptions): void; + + /** + * Set image cache capacity of decoded image count. + * if not set, the application will not cache any decoded image. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @param value capacity of decoded image count. + */ + static setImageCacheCount(value: number): void; + + /** + * Set image cache capacity of raw image data size in bytes before decode. + * if not set, the application will not cache any raw image data. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @param value capacity of raw image data size in bytes. + */ + static setImageRawDataCacheSize(value: number): void; + + /** + * Set image file cache size in bytes on disk before decode. + * if not set, the application will cache 100MB image files on disk. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @param value capacity of raw image data size in bytes. + */ + static setImageFileCacheSize(value: number): void; } -- Gitee