# Interface: SDK

SDK()

# Properties

# getFriendCloudStorage

getFriendCloudStorage: AsyncMethodGetFriendCloudStorageParams, GetFriendCloudStorageSucessCallback

获取当前用户托管数据当中对应 key 的数据。该接口只可在开放数据域下使用 更多使用方法详见 {@link 关系链数据 (opens new window)}

Returns: AsyncMethodGetFriendCloudStorageParams, GetFriendCloudStorageSucessCallback


# getGroupCloudStorage

getGroupCloudStorage: AsyncMethodGetGroupCloudStorageParams, GetGroupCloudStorageSuccessCallback

获取群同玩成员的游戏数据。小游戏通过群分享卡片打开的情况下才可以调用。该接口只可在开放数据域下使用。

Returns: AsyncMethodGetGroupCloudStorageParams, GetGroupCloudStorageSuccessCallback


# getGroupInfo

getGroupInfo: AsyncMethodGetGroupInfoParams, GetGroupInfoSuccessCallback

获取群信息。小游戏通过群分享卡片打开的情况下才可以调用。该接口只可在开放数据域下使用。

Returns: AsyncMethodGetGroupInfoParams, GetGroupInfoSuccessCallback


# getPotentialFriendList

getPotentialFriendList: AsyncMethodGetPotentialFriendListParams, GetPotentialFriendListSuccessCallback

获取可能对游戏感兴趣的未注册的好友名单。每次调用最多可获得 5 个好友,此接口只能在开放数据域中使用

Returns: AsyncMethodGetPotentialFriendListParams, GetPotentialFriendListSuccessCallback


# getUserCloudStorage

getUserCloudStorage: AsyncMethodGetUserCloudStorageParams, GetUserCloudStorageCallback

获取当前用户托管数据当中对应 key 的数据。该接口只可在开放数据域下使用

Returns: AsyncMethodGetUserCloudStorageParams, GetUserCloudStorageCallback


# modifyFriendInteractiveStorage

modifyFriendInteractiveStorage: AsyncMethodModifyFriendInteractiveStorageParams, ModifySuccessCallbackParams, ModifyFailCallbackParams, unknown›

修改好友的互动型托管数据,该接口只可在开放数据域下使用。 更多使用方法详见 {@link 关系链数据 (opens new window)}。

todo update the doc link above

Returns: AsyncMethodModifyFriendInteractiveStorageParams, ModifySuccessCallbackParams, ModifyFailCallbackParams, unknown›


# removeUserCloudStorage

removeUserCloudStorage: AsyncMethodremoveUserCloudStorageParams

删除用户托管数据当中对应 key 的数据。

Returns: AsyncMethodremoveUserCloudStorageParams


# setUserCloudStorage

setUserCloudStorage: AsyncMethodsetUserCloudStorageParams

对用户托管数据进行写数据操作。允许同时写多组 KV 数据。

Returns: AsyncMethodsetUserCloudStorageParams


# shareMessageToFriend

shareMessageToFriend: AsyncMethodShareMessageToFriendParams

给指定的好友分享游戏信息,该接口只可在开放数据域下使用 定向分享不允许直接在开放数据域设置 query 参数 需要设置时请参见游戏域 mogs.setMessageToFriendQuery 接口

Returns: AsyncMethodShareMessageToFriendParams