# Function: onInteractivePropertyChange

onInteractivePropertyChange(handler: InteractivePropertyEventHandler): void

开始监听 InteractiveProperty 改变事件

example

// 在头部引入账号模块
import { interactivePropertySystem } from "@timi/mogs-sdk";
...

// 使用
interactivePropertySystem.onInteractivePropertyChange(async (res) => {
   const ips = await interactivePropertySystem.interactiveProperty;
   console.log(
     "onInteractivePropertyChange:",
     ips,
   );
});
1
2
3
4
5
6
7
8
9
10
11
12

# 参数:

属性 类型 描述
handler InteractivePropertyEventHandler 要开始监听的 event handler

# 返回值:

void