tencent cloud

Feedback

SDK APIs (Unity)

Last updated: 2022-06-17 16:41:08
    Note:

    For API details, see here.

    Event Callback APIs

    API Description
    AddRecvNewMsgCallback Adds the callback for receiving new messages.
    RemoveRecvNewMsgCallback Deletes the callback for receiving new messages.
    SetMsgReadedReceiptCallback Sets the callback for message read receipts.
    SetMsgRevokeCallback Sets the callback for message recalls.
    SetMsgElemUploadProgressCallback Sets the callback for the upload progress of message element files.
    SetGroupTipsEventCallback Sets the callback for group system messages.
    SetConvEventCallback Sets the callback for conversation events.
    SetNetworkStatusListenerCallback Sets the callback for the network connection status listener.
    SetKickedOfflineCallback Sets the callback for kicked-offline notifications.
    SetUserSigExpiredCallback Sets the callback for ticket expiration.
    SetOnAddFriendCallback Sets the callback for adding friends.
    SetOnDeleteFriendCallback Sets the callback for deleting friends.
    SetUpdateFriendProfileCallback Sets the callback for updating friend profiles.
    SetFriendAddRequestCallback Sets the callback for friend requests.
    SetLogCallback Sets the callback for logs.
    SetMsgUpdateCallback Sets the callback for message update notifications returned after messages are modified in the cloud.

    IM SDK Initialization APIs

    API Description
    Init Initializes the IM SDK.
    Uninit Uninitializes the IM SDK.
    GetSDKVersion Gets the IM SDK version number.
    SetConfig Sets extra user configurations.

    Login and Logout APIs

    API Description
    Login Logs in.
    Logout Logs out.

    Conversation APIs

    API Description
    ConvCreate Creates a conversation.
    ConvDelete Deletes a conversation.
    ConvGetConvList Gets the conversation list of recent contacts.
    ConvSetDraft Sets a draft of a conversation.
    ConvCancelDraft Deletes a draft of a conversation.

    Message APIs

    API Description
    MsgSendNewMsg Sends a new message.
    MsgReportReaded Marks a message as read.
    MsgRevoke Recalls a message.
    MsgFindByMsgLocatorList Locates a message of a conversation by using the message locator.
    MsgImportMsgList Imports a message list to a conversation.
    MsgSaveMsg Saves a custom message.
    MsgGetMsgList Gets the message list of a conversation.
    MsgDelete Deletes the messages of a conversation.
    MsgDownloadElemToPath Downloads message elements (images, videos, audios, and files) to a specified path.
    MsgBatchSend Sends messages to multiple users (but not to groups).
    TIMMsgSendMessageReadReceipts Sends message read receipts.
    TIMMsgGetMessageReadReceipts Gets message read receipts.
    TIMMsgGetGroupMessageReadMemberList Sets the callback for message read receipts.

    Group APIs

    API Description
    GroupCreate Creates a group.
    GroupDelete Disbands a group.
    GroupJoin Requests to join a group.
    GroupQuit Leaves a group.
    GroupInviteMember Invites a user to join a group.
    GroupDeleteMember Deletes a group member.
    GroupGetJoinedGroupList Gets the list of groups that a user has joined.
    GroupGetGroupInfoList Gets the group information list.
    GroupModifyGroupInfo Modifies group information.
    GroupGetMemberInfoList Gets the group member information list.
    GroupModifyMemberInfo Modifies group member information.
    GroupGetPendencyList Gets the list of pending group requests.
    A pending group request is a request that has not yet been processed, for example, an invitation to join a group or a request to join a group.
    GroupReportPendencyReaded Marks a pending group request as read.
    GroupHandlePendency Handles a pending group request.

    User Profile APIs

    API Description
    ProfileGetUserProfileList Gets the profiles of specified users.
    ProfileModifySelfUserProfile Modifies one's own profile.

    Relationship Chain APIs

    API Description
    FriendshipGetFriendProfileList Gets all friends.
    FriendshipAddFriend Adds a friend.
    FriendshipHandleFriendAddRequest Handles a friend request.
    FriendshipModifyFriendProfile Updates a friend profile (remarks and other items).
    FriendshipDeleteFriend Deletes a friend.
    FriendshipCheckFriendType Checks the friend type (one-way or two-way).
    FriendshipCreateFriendGroup Creates a friend list.
    FriendshipGetFriendGroupList Gets the information of a friend list.
    FriendshipModifyFriendGroup Modifies a friend list.
    FriendshipDeleteFriendGroup Deletes a friend list.
    FriendshipAddToBlackList Adds a user to the blocklist.
    FriendshipGetBlackList Gets the blocklist.
    FriendshipDeleteFromBlackList Deletes users from the blocklist.
    FriendshipGetPendencyList Gets the pending friend request list.
    FriendshipDeletePendency Deletes a pending friend request.
    FriendshipReportPendencyReaded Marks a pending friend request as read.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support