# Variable: interactiveProperty
• interactiveProperty(): Promise‹ReadonlyWithExtensions‹InteractiveProperty››
互动道具信息
description
返回玩家的互动道具信息:头像 URL, 性别,昵称,openid,token
example
// 在头部引入玩家互动模块
import { interactivePropertySystem } from "@timi/mogs-sdk";
...
// 使用
const ip = await interactivePropertySystem.interactiveProperty;
const [{ key, owningNum, pendingNum }] = ip;
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回值:
Promise‹ReadonlyWithExtensions‹InteractiveProperty››
InteractiveProperty
结构
属性 | 类型 | 描述 |
---|---|---|
items | InteractivePropertyUnit[] | 道具列表 |