提交 12094f51 编写于 作者: 杜庆泉's avatar 杜庆泉

内存警告插件 去掉默认值,避免变量未使用的警告

上级 c2b12015
...@@ -26,8 +26,9 @@ export function onMemoryWarning(callback: UTSCallback) { ...@@ -26,8 +26,9 @@ export function onMemoryWarning(callback: UTSCallback) {
listeners.push(callback) listeners.push(callback)
} }
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
export function offMemoryWarning(callback: UTSCallback | null = null) { export function offMemoryWarning(callback: UTSCallback | null) {
if(callback == null){ if(callback == null){
// 清除全部回调 // 清除全部回调
...@@ -46,3 +47,4 @@ export function offMemoryWarning(callback: UTSCallback | null = null) { ...@@ -46,3 +47,4 @@ export function offMemoryWarning(callback: UTSCallback | null = null) {
UTSAndroid.offAppTrimMemory(onAppTrimMemoryListener) UTSAndroid.offAppTrimMemory(onAppTrimMemoryListener)
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册