# Function: offBackpackItemCountChange

offBackpackItemCountChange(handler?: BackpackItemCountChangeEventHandler): void

取消注册 背包物品数量更新 事件处理函数

example

import { backpackSystem } from '@timi/mogs-sdk';

// 保存事件处理函数的引用 便于稍后取消注册
const handler: backpackSystem.BackpackItemCountChangeEventHandler = (event) => {
  // ...
};
backpackSystem.onBackpackItemCountChange(handler);
backpackSystem.offBackpackItemCountChange(handler);
1
2
3
4
5
6
7
8

# 参数:

属性 类型
handler? BackpackItemCountChangeEventHandler

# 返回值:

void