# Interface: SDK
• SDK()
# Properties
# getFriendCloudStorage
• getFriendCloudStorage: AsyncMethod‹GetFriendCloudStorageParams, GetFriendCloudStorageSucessCallback›
获取当前用户托管数据当中对应 key 的数据。该接口只可在开放数据域下使用 更多使用方法详见 {@link 关系链数据 (opens new window)}
Returns: AsyncMethod‹GetFriendCloudStorageParams, GetFriendCloudStorageSucessCallback›
# getGroupCloudStorage
• getGroupCloudStorage: AsyncMethod‹GetGroupCloudStorageParams, GetGroupCloudStorageSuccessCallback›
获取群同玩成员的游戏数据。小游戏通过群分享卡片打开的情况下才可以调用。该接口只可在开放数据域下使用。
Returns: AsyncMethod‹GetGroupCloudStorageParams, GetGroupCloudStorageSuccessCallback›
# getGroupInfo
• getGroupInfo: AsyncMethod‹GetGroupInfoParams, GetGroupInfoSuccessCallback›
获取群信息。小游戏通过群分享卡片打开的情况下才可以调用。该接口只可在开放数据域下使用。
Returns: AsyncMethod‹GetGroupInfoParams, GetGroupInfoSuccessCallback›
# getPotentialFriendList
• getPotentialFriendList: AsyncMethod‹GetPotentialFriendListParams, GetPotentialFriendListSuccessCallback›
获取可能对游戏感兴趣的未注册的好友名单。每次调用最多可获得 5 个好友,此接口只能在开放数据域中使用
Returns: AsyncMethod‹GetPotentialFriendListParams, GetPotentialFriendListSuccessCallback›
# getUserCloudStorage
• getUserCloudStorage: AsyncMethod‹GetUserCloudStorageParams, GetUserCloudStorageCallback›
获取当前用户托管数据当中对应 key 的数据。该接口只可在开放数据域下使用
Returns: AsyncMethod‹GetUserCloudStorageParams, GetUserCloudStorageCallback›
# modifyFriendInteractiveStorage
• modifyFriendInteractiveStorage: AsyncMethod‹ModifyFriendInteractiveStorageParams, ModifySuccessCallbackParams, ModifyFailCallbackParams, unknown›
修改好友的互动型托管数据,该接口只可在开放数据域下使用。 更多使用方法详见 {@link 关系链数据 (opens new window)}。
todo
update the doc link above
Returns: AsyncMethod‹ModifyFriendInteractiveStorageParams, ModifySuccessCallbackParams, ModifyFailCallbackParams, unknown›
# removeUserCloudStorage
• removeUserCloudStorage: AsyncMethod‹removeUserCloudStorageParams›
删除用户托管数据当中对应 key 的数据。
Returns: AsyncMethod‹removeUserCloudStorageParams›
# setUserCloudStorage
• setUserCloudStorage: AsyncMethod‹setUserCloudStorageParams›
对用户托管数据进行写数据操作。允许同时写多组 KV 数据。
Returns: AsyncMethod‹setUserCloudStorageParams›
# shareMessageToFriend
• shareMessageToFriend: AsyncMethod‹ShareMessageToFriendParams›
给指定的好友分享游戏信息,该接口只可在开放数据域下使用 定向分享不允许直接在开放数据域设置 query 参数 需要设置时请参见游戏域 mogs.setMessageToFriendQuery 接口
Returns: AsyncMethod‹ShareMessageToFriendParams›