diff --git a/api/common/@system.app.d.ts b/api/common/@system.app.d.ts index b9903af04c234bc678dbaa25331cb6bd95fa193f..ac6247813190e3e556e7e0d0a8c04de030447d90 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; }