Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

mc.offAppHide(Function callback)

取消监听应用切后台事件

参数

参数类型默认值必填说明
callbackFunction是需要取消监听的回调函数

示例代码:

const callback = function(){
    console.log('app hide');
}
//监听
mc.onAppHide(callback);
//取消监听
mc.offAppHide(callback);