mc.offAppHide(Function callback)

取消监听应用切后台事件

参数

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

示例代码:

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

results matching ""

    No results matching ""

    results matching ""

      No results matching ""