# Variable: interactiveProperty

interactiveProperty(): Promise‹ReadonlyWithExtensions‹InteractiveProperty››

互动道具信息

description 返回玩家的互动道具信息:头像 URL, 性别,昵称,openid,token

example

// 在头部引入玩家互动模块
import { interactivePropertySystem } from "@timi/mogs-sdk";
...
// 使用
const ips = await interactivePropertySystem.interactiveProperty;

ips ||
[].forEach((ip) => {
const { key, owningNum, pendingNum } = ip;
});

1
2
3
4
5
6
7
8
9
10
11

# 返回值:

Promise‹ReadonlyWithExtensions‹InteractiveProperty››

InteractiveProperty结构

属性 类型 描述
items InteractivePropertyUnit[] 道具列表