From 8b997d9290e5c65e96f4115c9c97f596a231699c Mon Sep 17 00:00:00 2001 From: duqingquan-jpc Date: Sat, 12 Nov 2022 20:59:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E8=AD=A6=E5=91=8A=E8=AF=B4?= =?UTF-8?q?=E6=98=8E+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-memorywarning/readme.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/uni_modules/uni-memorywarning/readme.md b/uni_modules/uni-memorywarning/readme.md index c19a27f..3217110 100644 --- a/uni_modules/uni-memorywarning/readme.md +++ b/uni_modules/uni-memorywarning/readme.md @@ -15,36 +15,46 @@ /** * The device is beginning to run low on memory. Your app is running and not killable. + * 设备内存偏低 */ int TRIM_MEMORY_RUNNING_MODERATE = 5; /** - * The device is running much lower on memory. Your app is running and not killable, but please release unused resources to improve system performance (which directly impacts your app's performance). + * The device is running much lower on memory. + * Your app is running and not killable, but please release unused resources to improve system performance (which directly impacts your app's performance). + * 内存设备偏低,虽然还不会杀死应用,但是建议开发者释放不必要的资源 */ int TRIM_MEMORY_RUNNING_LOW = 10; /** - * The device is running extremely low on memory. Your app is not yet considered a killable process, but the system will begin killing background processes if apps do not release resources, + * The device is running extremely low on memory. + * Your app is not yet considered a killable process, but the system will begin killing background processes if apps do not release resources, * so you should release non-critical resources now to prevent performance degradation. + * 设备内存进一步吃紧,当前应用不会被考虑杀死,但是系统可能会杀死一些优先级更低的后台应用 + * 建议释放一些非关键资源 */ int TRIM_MEMORY_RUNNING_CRITICAL = 15; /** - * The device is beginning to run low on memory. Your app is running and not killable. + * the process had been showing a user interface, and is no longer doing so. + * 当前应用前台UI已经被隐藏 */ int TRIM_MEMORY_UI_HIDDEN = 20; /** * The system is running low on memory and your process is near the beginning of the LRU list. * Although your app process is not at a high risk of being killed, the system may already be killing processes in the LRU list, * so you should release resources that are easy to recover so your process will remain in the list and resume quickly when the user returns to your app. + * LRU算法列表中的应用已经被考虑杀死 */ int TRIM_MEMORY_BACKGROUND = 40; /** * The system is running low on memory and your process is near the middle of the LRU list. * If the system becomes further constrained for memory, * there's a chance your process will be killed. + * LRU列表中的大部分应用已经被杀死 */ int TRIM_MEMORY_MODERATE = 60; /** * The system is running low on memory and your process is one of the first to be killed if the system does not recover memory now. * You should release absolutely everything that's not critical to resuming your app state. + * 当前应用将会是下一个被释放的进程 */ int TRIM_MEMORY_COMPLETE = 80; -- GitLab