diff --git a/uni_modules/uni-memorywarning/utssdk/app-android/index.uts b/uni_modules/uni-memorywarning/utssdk/app-android/index.uts index 8cab5e7004a662f18e46f9a9e6355febf1c9cee8..a28f12af07ade2f6be38f7c00ee4aaeb7fa8cceb 100644 --- a/uni_modules/uni-memorywarning/utssdk/app-android/index.uts +++ b/uni_modules/uni-memorywarning/utssdk/app-android/index.uts @@ -26,8 +26,9 @@ export function onMemoryWarning(callback: UTSCallback) { listeners.push(callback) } + @Suppress("DEPRECATION") -export function offMemoryWarning(callback: UTSCallback | null = null) { +export function offMemoryWarning(callback: UTSCallback | null) { if(callback == null){ // 清除全部回调 @@ -46,3 +47,4 @@ export function offMemoryWarning(callback: UTSCallback | null = null) { UTSAndroid.offAppTrimMemory(onAppTrimMemoryListener) } } +