# Function: offBackpackItemSwap
▸ offBackpackItemSwap(handler?
: BackpackItemSwapEventHandler): void
取消注册 背包物品交换 事件处理函数
example
import { backpackSystem } from '@timi/mogs-sdk';
const handler: backpackSystem.BackpackItemSwapEventHandler = (event) => {
// ...
};
backpackSystem.onBackpackItemSwap(handler);
backpackSystem.offBackpackItemSwap(handler);
1
2
3
4
5
6
7
2
3
4
5
6
7
# 参数:
属性 | 类型 |
---|---|
handler? | BackpackItemSwapEventHandler |
# 返回值:
void