# Function: offBackpackItemCustomDataUpdate
▸ offBackpackItemCustomDataUpdate(handler?
: BackpackItemCustomDataUpdateEventHandler): void
取消注册 背包物品自定义信息变更 事件处理函数
example
import { backpackSystem } from '@timi/mogs-sdk';
// 保存事件处理函数的引用 便于稍后取消注册
const handler: backpackSystem.BackpackItemCustomDataUpdateEventHandler = (event) => {
// ...
};
backpackSystem.onBackpackItemCustomDataUpdate(handler);
backpackSystem.offBackpackItemCustomDataUpdate(handler);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 参数:
属性 | 类型 |
---|---|
handler? | BackpackItemCustomDataUpdateEventHandler |
# 返回值:
void