Documentation ¶
Index ¶
- Constants
- Variables
- func AcceptFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)
- func AcceptGroupApplication(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func AddBlack(callback open_im_sdk_callback.Base, operationID string, blackUserID string, ...)
- func AddFriend(callback open_im_sdk_callback.Base, operationID string, userIDReqMsg string)
- func AddUserCommand(callback open_im_sdk_callback.Base, operationID string, Type int32, ...)
- func ChangeGroupMemberMute(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func ChangeGroupMute(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func ChangeInputStates(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func CheckFriend(callback open_im_sdk_callback.Base, operationID string, userIDList string)
- func CheckResourceLoad(uSDK *LoginMgr, funcName string) error
- func ClearConversationAndDeleteAllMsg(callback open_im_sdk_callback.Base, operationID string, conversationID string)
- func CreateAdvancedQuoteMessage(operationID string, text string, message, messageEntityList string) string
- func CreateAdvancedTextMessage(operationID string, text, messageEntityList string) string
- func CreateCardMessage(operationID string, cardInfo string) string
- func CreateCustomMessage(operationID string, data, extension string, description string) string
- func CreateFaceMessage(operationID string, index int, data string) string
- func CreateFileMessage(operationID string, filePath string, fileName string) string
- func CreateFileMessageByURL(operationID string, fileBaseInfo string) string
- func CreateFileMessageFromFullPath(operationID string, fileFullPath, fileName string) string
- func CreateForwardMessage(operationID string, m string) string
- func CreateGroup(callback open_im_sdk_callback.Base, operationID string, groupReqInfo string)
- func CreateImageMessage(operationID string, imagePath string) string
- func CreateImageMessageByURL(operationID string, sourcePath string, ...) string
- func CreateImageMessageFromFullPath(operationID string, imageFullPath string) string
- func CreateLocationMessage(operationID string, description string, longitude, latitude float64) string
- func CreateMergerMessage(operationID string, messageList, title, summaryList string) string
- func CreateQuoteMessage(operationID string, text string, message string) string
- func CreateSoundMessage(operationID string, soundPath string, duration int64) string
- func CreateSoundMessageByURL(operationID string, soundBaseInfo string) string
- func CreateSoundMessageFromFullPath(operationID string, soundPath string, duration int64) string
- func CreateTextAtMessage(operationID string, text, atUserList, atUsersInfo, message string) string
- func CreateTextMessage(operationID string, text string) string
- func CreateVideoMessage(operationID string, videoPath string, videoType string, duration int64, ...) string
- func CreateVideoMessageByURL(operationID string, videoBaseInfo string) string
- func CreateVideoMessageFromFullPath(operationID string, videoFullPath string, videoType string, duration int64, ...) string
- func DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)
- func DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)
- func DeleteConversationAndDeleteAllMsg(callback open_im_sdk_callback.Base, operationID string, conversationID string)
- func DeleteFriend(callback open_im_sdk_callback.Base, operationID string, friendUserID string)
- func DeleteMessage(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func DeleteUserCommand(callback open_im_sdk_callback.Base, operationID string, Type int32, ...)
- func DismissGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
- func FindMessageList(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetAdvancedHistoryMessageListReverse(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)
- func GetAllUserCommands(callback open_im_sdk_callback.Base, operationID string, Type int32)
- func GetAtAllTag(operationID string) string
- func GetBlackList(callback open_im_sdk_callback.Base, operationID string)
- func GetConversationIDBySessionType(operationID string, sourceID string, sessionType int) string
- func GetConversationListSplit(callback open_im_sdk_callback.Base, operationID string, offset int, count int)
- func GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetFriendApplicationListAsApplicant(callback open_im_sdk_callback.Base, operationID string)
- func GetFriendApplicationListAsRecipient(callback open_im_sdk_callback.Base, operationID string)
- func GetFriendList(callback open_im_sdk_callback.Base, operationID string)
- func GetFriendListPage(callback open_im_sdk_callback.Base, operationID string, offset int32, ...)
- func GetGroupApplicationListAsApplicant(callback open_im_sdk_callback.Base, operationID string)
- func GetGroupApplicationListAsRecipient(callback open_im_sdk_callback.Base, operationID string)
- func GetGroupMemberList(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func GetGroupMemberListByJoinTimeFilter(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func GetGroupMemberOwnerAndAdmin(callback open_im_sdk_callback.Base, operationID string, groupID string)
- func GetInputStates(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func GetJoinedGroupList(callback open_im_sdk_callback.Base, operationID string)
- func GetJoinedGroupListPage(callback open_im_sdk_callback.Base, operationID string, offset, count int32)
- func GetLoginStatus(operationID string) int
- func GetLoginUserID() string
- func GetMultipleConversation(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetOneConversation(callback open_im_sdk_callback.Base, operationID string, sessionType int32, ...)
- func GetSdkVersion() string
- func GetSelfUserInfo(callback open_im_sdk_callback.Base, operationID string)
- func GetSpecifiedFriendsInfo(callback open_im_sdk_callback.Base, operationID string, userIDList string)
- func GetSpecifiedGroupMembersInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func GetSpecifiedGroupsInfo(callback open_im_sdk_callback.Base, operationID string, groupIDList string)
- func GetSubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string)
- func GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)
- func GetUserStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
- func GetUsersInGroup(callback open_im_sdk_callback.Base, operationID string, ...)
- func GetUsersInfo(callback open_im_sdk_callback.Base, operationID string, userIDs string)
- func GetUsersInfoFromSrv(callback open_im_sdk_callback.Base, operationID string, userIDs string)
- func GetUsersInfoWithCache(callback open_im_sdk_callback.Base, operationID string, ...)
- func HideAllConversations(callback open_im_sdk_callback.Base, operationID string)
- func HideConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string)
- func InitSDK(listener open_im_sdk_callback.OnConnListener, operationID string, ...) bool
- func InsertGroupMessageToLocalStorage(callback open_im_sdk_callback.Base, operationID string, message string, ...)
- func InsertSingleMessageToLocalStorage(callback open_im_sdk_callback.Base, operationID string, message string, ...)
- func InviteUserToGroup(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func IsJoinGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
- func JoinGroup(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func KickGroupMember(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func Login(callback open_im_sdk_callback.Base, operationID string, userID, token string)
- func Logout(callback open_im_sdk_callback.Base, operationID string)
- func MarkConversationMessageAsRead(callback open_im_sdk_callback.Base, operationID string, conversationID string)
- func MarkMessagesAsReadByMsgID(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func NetworkStatusChanged(callback open_im_sdk_callback.Base, operationID string)
- func PinConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func PinFriends(callback open_im_sdk_callback.Base, operationID string, ...)
- func QuitGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
- func RefuseFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)
- func RefuseGroupApplication(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func RemoveBlack(callback open_im_sdk_callback.Base, operationID string, removeUserID string)
- func ResetConversationGroupAtType(callback open_im_sdk_callback.Base, operationID string, conversationID string)
- func RevokeMessage(callback open_im_sdk_callback.Base, operationID string, ...)
- func SearchConversation(callback open_im_sdk_callback.Base, operationID string, searchParam string)
- func SearchFriends(callback open_im_sdk_callback.Base, operationID string, searchParam string)
- func SearchGroupMembers(callback open_im_sdk_callback.Base, operationID string, searchParam string)
- func SearchGroups(callback open_im_sdk_callback.Base, operationID string, searchParam string)
- func SearchLocalMessages(callback open_im_sdk_callback.Base, operationID string, searchParam string)
- func SendMessage(callback open_im_sdk_callback.SendMsgCallBack, ...)
- func SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, operationID string, ...)
- func SetAdvancedMsgListener(listener open_im_sdk_callback.OnAdvancedMsgListener)
- func SetAppBackgroundStatus(callback open_im_sdk_callback.Base, operationID string, isBackground bool)
- func SetAppBadge(callback open_im_sdk_callback.Base, operationID string, appUnreadCount int32)
- func SetBatchMsgListener(listener open_im_sdk_callback.OnBatchMsgListener)
- func SetConversationBurnDuration(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationDraft(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationEx(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationIsMsgDestruct(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationListener(listener open_im_sdk_callback.OnConversationListener)
- func SetConversationMsgDestructTime(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationPrivateChat(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, conversationID string, ...)
- func SetCustomBusinessListener(listener open_im_sdk_callback.OnCustomBusinessListener)
- func SetFriendListener(listener open_im_sdk_callback.OnFriendshipListener)
- func SetFriendRemark(callback open_im_sdk_callback.Base, operationID string, userIDRemark string)
- func SetFriendsEx(callback open_im_sdk_callback.Base, operationID string, friendIDs string, ...)
- func SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, opt int)
- func SetGroupApplyMemberFriend(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func SetGroupInfo(callback open_im_sdk_callback.Base, operationID string, groupInfo string)
- func SetGroupListener(listener open_im_sdk_callback.OnGroupListener)
- func SetGroupLookMemberInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func SetGroupMemberInfo(callback open_im_sdk_callback.Base, operationID string, groupMemberInfo string)
- func SetGroupMemberNickname(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func SetGroupMemberRoleLevel(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func SetGroupVerification(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func SetMessageKvInfoListener(listener open_im_sdk_callback.OnMessageKvInfoListener)
- func SetMessageLocalEx(callback open_im_sdk_callback.Base, operationID string, ...)
- func SetSelfInfo(callback open_im_sdk_callback.Base, operationID string, userInfo string)
- func SetSelfInfoEx(callback open_im_sdk_callback.Base, operationID string, userInfo string)
- func SetUserListener(listener open_im_sdk_callback.OnUserListener)
- func SubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
- func TransferGroupOwner(callback open_im_sdk_callback.Base, operationID string, groupID string, ...)
- func TypingStatusUpdate(callback open_im_sdk_callback.Base, operationID string, recvID string, ...)
- func UnInitSDK(operationID string)
- func UnsubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
- func UpdateFcmToken(callback open_im_sdk_callback.Base, operationID, fcmToken string, ...)
- func UpdateMsgSenderInfo(callback open_im_sdk_callback.Base, operationID string, ...)
- func UploadFile(callback open_im_sdk_callback.Base, operationID string, req string, ...)
- func UploadLogs(callback open_im_sdk_callback.Base, operationID string, line int, ex string, ...)
- type LoginMgr
- func (u *LoginMgr) AdvancedMsgListener() open_im_sdk_callback.OnAdvancedMsgListener
- func (u *LoginMgr) BaseCtx() context.Context
- func (u *LoginMgr) BatchMsgListener() open_im_sdk_callback.OnBatchMsgListener
- func (u *LoginMgr) BusinessListener() open_im_sdk_callback.OnCustomBusinessListener
- func (u *LoginMgr) Context() context.Context
- func (u *LoginMgr) Conversation() *conv.Conversation
- func (u *LoginMgr) ConversationListener() open_im_sdk_callback.OnConversationListener
- func (u *LoginMgr) Exit()
- func (u *LoginMgr) File() *file.File
- func (u *LoginMgr) Friend() *friend.Friend
- func (u *LoginMgr) FriendListener() open_im_sdk_callback.OnFriendshipListener
- func (u *LoginMgr) Full() *full.Full
- func (u *LoginMgr) GetLoginStatus(ctx context.Context) int
- func (u *LoginMgr) GetLoginUserID() string
- func (u *LoginMgr) GetToken() string
- func (u *LoginMgr) Group() *group.Group
- func (u *LoginMgr) GroupListener() open_im_sdk_callback.OnGroupListener
- func (u *LoginMgr) ImConfig() sdk_struct.IMConfig
- func (u *LoginMgr) InitMgr(ctx context.Context, userID, token string) error
- func (u *LoginMgr) InitSDK(config sdk_struct.IMConfig, listener open_im_sdk_callback.OnConnListener) bool
- func (u *LoginMgr) Login(ctx context.Context, userID, token string) error
- func (u *LoginMgr) LoginWithOutInit(ctx context.Context, userID, token string) error
- func (u *LoginMgr) Logout(ctx context.Context) error
- func (u *LoginMgr) LongConnMgr() *interaction.LongConnMgr
- func (u *LoginMgr) MsgKvListener() open_im_sdk_callback.OnMessageKvInfoListener
- func (u *LoginMgr) NetworkStatusChanged(ctx context.Context)
- func (u *LoginMgr) SetAdvancedMsgListener(advancedMsgListener open_im_sdk_callback.OnAdvancedMsgListener)
- func (u *LoginMgr) SetAppBackgroundStatus(ctx context.Context, isBackground bool) error
- func (u *LoginMgr) SetBatchMsgListener(batchMsgListener open_im_sdk_callback.OnBatchMsgListener)
- func (u *LoginMgr) SetConversationListener(conversationListener open_im_sdk_callback.OnConversationListener)
- func (u *LoginMgr) SetCustomBusinessListener(listener open_im_sdk_callback.OnCustomBusinessListener)
- func (u *LoginMgr) SetFriendListener(friendListener open_im_sdk_callback.OnFriendshipListener)
- func (u *LoginMgr) SetGroupListener(groupListener open_im_sdk_callback.OnGroupListener)
- func (u *LoginMgr) SetMessageKvInfoListener(messageKvInfoListener open_im_sdk_callback.OnMessageKvInfoListener)
- func (u *LoginMgr) SetUserListener(userListener open_im_sdk_callback.OnUserListener)
- func (u *LoginMgr) SignalingListener() open_im_sdk_callback.OnSignalingListener
- func (u *LoginMgr) Third() *third.Third
- func (u *LoginMgr) UnInitSDK()
- func (u *LoginMgr) User() *user.User
- func (u *LoginMgr) UserListener() open_im_sdk_callback.OnUserListener
Constants ¶
const ( LogoutStatus = iota + 1 Logging Logged )
const (
LogoutTips = "js sdk socket close"
)
Variables ¶
var ErrNotImplemented = errors.New("not set listener")
Functions ¶
func AcceptFriendApplication ¶
func AcceptFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)
func AcceptGroupApplication ¶
func AddBlack ¶
func AddBlack(callback open_im_sdk_callback.Base, operationID string, blackUserID string, ex string)
func AddFriend ¶
func AddFriend(callback open_im_sdk_callback.Base, operationID string, userIDReqMsg string)
func AddUserCommand ¶ added in v3.8.0
func AddUserCommand(callback open_im_sdk_callback.Base, operationID string, Type int32, uuid string, value string)
AddUserCommand add to user's favorite
func ChangeGroupMemberMute ¶
func ChangeGroupMute ¶
func ChangeGroupMute(callback open_im_sdk_callback.Base, operationID string, groupID string, isMute bool)
func ChangeInputStates ¶ added in v3.5.1
func ChangeInputStates(callback open_im_sdk_callback.Base, operationID string, conversationID string, focus bool)
func CheckFriend ¶
func CheckFriend(callback open_im_sdk_callback.Base, operationID string, userIDList string)
func CheckResourceLoad ¶
CheckResourceLoad checks the SDK is resource load status.
func ClearConversationAndDeleteAllMsg ¶
func ClearConversationAndDeleteAllMsg(callback open_im_sdk_callback.Base, operationID string, conversationID string)
func CreateCardMessage ¶
func CreateCustomMessage ¶
func CreateFileMessage ¶
func CreateFileMessageByURL ¶
func CreateForwardMessage ¶
func CreateGroup ¶
func CreateGroup(callback open_im_sdk_callback.Base, operationID string, groupReqInfo string)
func CreateImageMessage ¶
func CreateImageMessageByURL ¶
func CreateLocationMessage ¶
func CreateMergerMessage ¶
func CreateQuoteMessage ¶
func CreateSoundMessage ¶
func CreateSoundMessageByURL ¶
func CreateTextAtMessage ¶
func CreateTextMessage ¶
func CreateVideoMessage ¶
func CreateVideoMessageByURL ¶
func DeleteAllMsgFromLocal ¶
func DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)
func DeleteAllMsgFromLocalAndSvr ¶
func DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)
func DeleteConversationAndDeleteAllMsg ¶
func DeleteConversationAndDeleteAllMsg(callback open_im_sdk_callback.Base, operationID string, conversationID string)
func DeleteFriend ¶
func DeleteFriend(callback open_im_sdk_callback.Base, operationID string, friendUserID string)
func DeleteMessage ¶
func DeleteMessage(callback open_im_sdk_callback.Base, operationID string, conversationID string, clientMsgID string)
func DeleteMessageFromLocalStorage ¶
func DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, operationID string, conversationID string, clientMsgID string)
func DeleteUserCommand ¶ added in v3.8.0
func DeleteUserCommand(callback open_im_sdk_callback.Base, operationID string, Type int32, uuid string)
DeleteUserCommand delete from user's favorite
func DismissGroup ¶
func DismissGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
func FindMessageList ¶
func FindMessageList(callback open_im_sdk_callback.Base, operationID string, findMessageOptions string)
func GetAdvancedHistoryMessageList ¶
func GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, operationID string, getMessageOptions string)
func GetAdvancedHistoryMessageListReverse ¶
func GetAdvancedHistoryMessageListReverse(callback open_im_sdk_callback.Base, operationID string, getMessageOptions string)
func GetAllConversationList ¶
func GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)
func GetAllUserCommands ¶ added in v3.8.0
func GetAllUserCommands(callback open_im_sdk_callback.Base, operationID string, Type int32)
GetAllUserCommands get user's favorite
func GetAtAllTag ¶
func GetBlackList ¶
func GetBlackList(callback open_im_sdk_callback.Base, operationID string)
func GetConversationListSplit ¶
func GetConversationListSplit(callback open_im_sdk_callback.Base, operationID string, offset int, count int)
func GetConversationRecvMessageOpt ¶
func GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, conversationIDList string)
deprecated
func GetFriendApplicationListAsApplicant ¶
func GetFriendApplicationListAsApplicant(callback open_im_sdk_callback.Base, operationID string)
func GetFriendApplicationListAsRecipient ¶
func GetFriendApplicationListAsRecipient(callback open_im_sdk_callback.Base, operationID string)
func GetFriendList ¶
func GetFriendList(callback open_im_sdk_callback.Base, operationID string)
func GetFriendListPage ¶
func GetFriendListPage(callback open_im_sdk_callback.Base, operationID string, offset int32, count int32)
func GetGroupApplicationListAsApplicant ¶
func GetGroupApplicationListAsApplicant(callback open_im_sdk_callback.Base, operationID string)
func GetGroupApplicationListAsRecipient ¶
func GetGroupApplicationListAsRecipient(callback open_im_sdk_callback.Base, operationID string)
func GetGroupMemberList ¶
func GetGroupMemberOwnerAndAdmin ¶
func GetGroupMemberOwnerAndAdmin(callback open_im_sdk_callback.Base, operationID string, groupID string)
func GetInputStates ¶ added in v3.5.1
func GetInputStates(callback open_im_sdk_callback.Base, operationID string, conversationID string, userID string)
func GetJoinedGroupList ¶
func GetJoinedGroupList(callback open_im_sdk_callback.Base, operationID string)
func GetJoinedGroupListPage ¶ added in v3.8.0
func GetJoinedGroupListPage(callback open_im_sdk_callback.Base, operationID string, offset, count int32)
func GetLoginStatus ¶
func GetLoginUserID ¶
func GetLoginUserID() string
func GetMultipleConversation ¶
func GetMultipleConversation(callback open_im_sdk_callback.Base, operationID string, conversationIDList string)
func GetOneConversation ¶
func GetOneConversation(callback open_im_sdk_callback.Base, operationID string, sessionType int32, sourceID string)
func GetSdkVersion ¶
func GetSdkVersion() string
func GetSelfUserInfo ¶
func GetSelfUserInfo(callback open_im_sdk_callback.Base, operationID string)
GetSelfUserInfo obtains the user's own information.
func GetSpecifiedFriendsInfo ¶
func GetSpecifiedFriendsInfo(callback open_im_sdk_callback.Base, operationID string, userIDList string)
func GetSpecifiedGroupMembersInfo ¶
func GetSpecifiedGroupMembersInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, userIDList string)
func GetSpecifiedGroupsInfo ¶
func GetSpecifiedGroupsInfo(callback open_im_sdk_callback.Base, operationID string, groupIDList string)
func GetSubscribeUsersStatus ¶
func GetSubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string)
GetSubscribeUsersStatus Get the online status of subscribers.
func GetTotalUnreadMsgCount ¶
func GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)
func GetUserStatus ¶
func GetUserStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
GetUserStatus Get the online status of users.
func GetUsersInGroup ¶ added in v3.8.0
func GetUsersInGroup(callback open_im_sdk_callback.Base, operationID string, groupID, userIDList string)
func GetUsersInfo ¶
func GetUsersInfo(callback open_im_sdk_callback.Base, operationID string, userIDs string)
func GetUsersInfoFromSrv ¶
func GetUsersInfoFromSrv(callback open_im_sdk_callback.Base, operationID string, userIDs string)
GetUsersInfoFromSrv obtains the information about multiple users.
func GetUsersInfoWithCache ¶ added in v3.4.0
func GetUsersInfoWithCache(callback open_im_sdk_callback.Base, operationID string, userIDs, groupID string)
func HideAllConversations ¶ added in v3.4.0
func HideAllConversations(callback open_im_sdk_callback.Base, operationID string)
func HideConversation ¶
func HideConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string)
func InitSDK ¶
func InitSDK(listener open_im_sdk_callback.OnConnListener, operationID string, config string) bool
func InviteUserToGroup ¶
func IsJoinGroup ¶
func IsJoinGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
func KickGroupMember ¶
func Login ¶
func Login(callback open_im_sdk_callback.Base, operationID string, userID, token string)
func Logout ¶
func Logout(callback open_im_sdk_callback.Base, operationID string)
func MarkConversationMessageAsRead ¶
func MarkConversationMessageAsRead(callback open_im_sdk_callback.Base, operationID string, conversationID string)
mark as read
func MarkMessagesAsReadByMsgID ¶
func MarkMessagesAsReadByMsgID(callback open_im_sdk_callback.Base, operationID string, conversationID string, clientMsgIDs string)
func NetworkStatusChanged ¶
func NetworkStatusChanged(callback open_im_sdk_callback.Base, operationID string)
func PinConversation ¶
func PinConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string, isPinned bool)
func PinFriends ¶ added in v3.5.0
func PinFriends(callback open_im_sdk_callback.Base, operationID string, pinFriendsParams string)
func QuitGroup ¶
func QuitGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)
func RefuseFriendApplication ¶
func RefuseFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)
func RefuseGroupApplication ¶
func RemoveBlack ¶
func RemoveBlack(callback open_im_sdk_callback.Base, operationID string, removeUserID string)
func ResetConversationGroupAtType ¶
func ResetConversationGroupAtType(callback open_im_sdk_callback.Base, operationID string, conversationID string)
func RevokeMessage ¶
func RevokeMessage(callback open_im_sdk_callback.Base, operationID string, conversationID, clientMsgID string)
func SearchConversation ¶ added in v3.5.0
func SearchConversation(callback open_im_sdk_callback.Base, operationID string, searchParam string)
func SearchFriends ¶
func SearchFriends(callback open_im_sdk_callback.Base, operationID string, searchParam string)
func SearchGroupMembers ¶
func SearchGroupMembers(callback open_im_sdk_callback.Base, operationID string, searchParam string)
func SearchGroups ¶
func SearchGroups(callback open_im_sdk_callback.Base, operationID string, searchParam string)
func SearchLocalMessages ¶
func SearchLocalMessages(callback open_im_sdk_callback.Base, operationID string, searchParam string)
func SendMessage ¶
func SendMessage(callback open_im_sdk_callback.SendMsgCallBack, operationID, message, recvID, groupID, offlinePushInfo string, isOnlineOnly bool)
func SendMessageNotOss ¶
func SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, operationID string, message, recvID, groupID string, offlinePushInfo string, isOnlineOnly bool)
func SetAdvancedMsgListener ¶
func SetAdvancedMsgListener(listener open_im_sdk_callback.OnAdvancedMsgListener)
func SetAppBackgroundStatus ¶
func SetAppBackgroundStatus(callback open_im_sdk_callback.Base, operationID string, isBackground bool)
func SetAppBadge ¶
func SetAppBadge(callback open_im_sdk_callback.Base, operationID string, appUnreadCount int32)
func SetBatchMsgListener ¶
func SetBatchMsgListener(listener open_im_sdk_callback.OnBatchMsgListener)
func SetConversationBurnDuration ¶
func SetConversationBurnDuration(callback open_im_sdk_callback.Base, operationID string, conversationID string, duration int32)
func SetConversationDraft ¶
func SetConversationDraft(callback open_im_sdk_callback.Base, operationID string, conversationID string, draftText string)
func SetConversationEx ¶ added in v3.5.0
func SetConversationEx(callback open_im_sdk_callback.Base, operationID string, conversationID string, ex string)
func SetConversationIsMsgDestruct ¶
func SetConversationIsMsgDestruct(callback open_im_sdk_callback.Base, operationID string, conversationID string, isMsgDestruct bool)
func SetConversationListener ¶
func SetConversationListener(listener open_im_sdk_callback.OnConversationListener)
func SetConversationMsgDestructTime ¶
func SetConversationMsgDestructTime(callback open_im_sdk_callback.Base, operationID string, conversationID string, msgDestructTime int64)
func SetConversationPrivateChat ¶
func SetConversationPrivateChat(callback open_im_sdk_callback.Base, operationID string, conversationID string, isPrivate bool)
func SetConversationRecvMessageOpt ¶
func SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, conversationID string, opt int)
func SetCustomBusinessListener ¶
func SetCustomBusinessListener(listener open_im_sdk_callback.OnCustomBusinessListener)
func SetFriendListener ¶
func SetFriendListener(listener open_im_sdk_callback.OnFriendshipListener)
func SetFriendRemark ¶
func SetFriendRemark(callback open_im_sdk_callback.Base, operationID string, userIDRemark string)
func SetFriendsEx ¶ added in v3.5.0
func SetFriendsEx(callback open_im_sdk_callback.Base, operationID string, friendIDs string, ex string)
func SetGlobalRecvMessageOpt ¶
func SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, opt int)
func SetGroupApplyMemberFriend ¶
func SetGroupApplyMemberFriend(callback open_im_sdk_callback.Base, operationID string, groupID string, rule int32)
func SetGroupInfo ¶
func SetGroupInfo(callback open_im_sdk_callback.Base, operationID string, groupInfo string)
func SetGroupListener ¶
func SetGroupListener(listener open_im_sdk_callback.OnGroupListener)
func SetGroupLookMemberInfo ¶
func SetGroupLookMemberInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, rule int32)
func SetGroupMemberInfo ¶
func SetGroupMemberInfo(callback open_im_sdk_callback.Base, operationID string, groupMemberInfo string)
func SetGroupMemberNickname ¶
func SetGroupMemberRoleLevel ¶
func SetGroupVerification ¶
func SetGroupVerification(callback open_im_sdk_callback.Base, operationID string, groupID string, verification int32)
func SetMessageKvInfoListener ¶
func SetMessageKvInfoListener(listener open_im_sdk_callback.OnMessageKvInfoListener)
func SetMessageLocalEx ¶
func SetMessageLocalEx(callback open_im_sdk_callback.Base, operationID string, conversationID, clientMsgID, localEx string)
func SetSelfInfo ¶
func SetSelfInfo(callback open_im_sdk_callback.Base, operationID string, userInfo string)
SetSelfInfo sets the user's own information. Deprecated: user SetSelfInfoEx instead
func SetSelfInfoEx ¶ added in v3.5.0
func SetSelfInfoEx(callback open_im_sdk_callback.Base, operationID string, userInfo string)
SetSelfInfoEx sets the user's own information with Ex field.
func SetUserListener ¶
func SetUserListener(listener open_im_sdk_callback.OnUserListener)
func SubscribeUsersStatus ¶
func SubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
SubscribeUsersStatus Presence status of subscribed users.
func TransferGroupOwner ¶
func TransferGroupOwner(callback open_im_sdk_callback.Base, operationID string, groupID string, newOwnerUserID string)
func TypingStatusUpdate ¶
func TypingStatusUpdate(callback open_im_sdk_callback.Base, operationID string, recvID string, msgTip string)
func UnsubscribeUsersStatus ¶
func UnsubscribeUsersStatus(callback open_im_sdk_callback.Base, operationID string, userIDs string)
UnsubscribeUsersStatus Unsubscribe a user's presence.
func UpdateFcmToken ¶
func UpdateFcmToken(callback open_im_sdk_callback.Base, operationID, fcmToken string, expireTime int64)
func UpdateMsgSenderInfo ¶
func UpdateMsgSenderInfo(callback open_im_sdk_callback.Base, operationID string, nickname, faceURL string)
UpdateMsgSenderInfo updates the message sender's nickname and face URL.
func UploadFile ¶
func UploadFile(callback open_im_sdk_callback.Base, operationID string, req string, progress open_im_sdk_callback.UploadFileCallback)
func UploadLogs ¶ added in v3.4.0
func UploadLogs(callback open_im_sdk_callback.Base, operationID string, line int, ex string, progress open_im_sdk_callback.UploadLogProgress)
Types ¶
type LoginMgr ¶ added in v3.4.0
type LoginMgr struct {
// contains filtered or unexported fields
}
var ( // UserForSDK Client-independent user class UserForSDK *LoginMgr )
func NewLoginMgr ¶ added in v3.4.0
func NewLoginMgr() *LoginMgr
func (*LoginMgr) AdvancedMsgListener ¶ added in v3.5.0
func (u *LoginMgr) AdvancedMsgListener() open_im_sdk_callback.OnAdvancedMsgListener
func (*LoginMgr) BatchMsgListener ¶ added in v3.5.0
func (u *LoginMgr) BatchMsgListener() open_im_sdk_callback.OnBatchMsgListener
func (*LoginMgr) BusinessListener ¶ added in v3.5.0
func (u *LoginMgr) BusinessListener() open_im_sdk_callback.OnCustomBusinessListener
func (*LoginMgr) Conversation ¶ added in v3.4.0
func (u *LoginMgr) Conversation() *conv.Conversation
func (*LoginMgr) ConversationListener ¶ added in v3.5.0
func (u *LoginMgr) ConversationListener() open_im_sdk_callback.OnConversationListener
func (*LoginMgr) FriendListener ¶ added in v3.5.0
func (u *LoginMgr) FriendListener() open_im_sdk_callback.OnFriendshipListener
func (*LoginMgr) GetLoginStatus ¶ added in v3.4.0
func (*LoginMgr) GetLoginUserID ¶ added in v3.4.0
func (*LoginMgr) GroupListener ¶ added in v3.5.0
func (u *LoginMgr) GroupListener() open_im_sdk_callback.OnGroupListener
func (*LoginMgr) ImConfig ¶ added in v3.4.0
func (u *LoginMgr) ImConfig() sdk_struct.IMConfig
func (*LoginMgr) InitSDK ¶ added in v3.4.0
func (u *LoginMgr) InitSDK(config sdk_struct.IMConfig, listener open_im_sdk_callback.OnConnListener) bool
func (*LoginMgr) LoginWithOutInit ¶ added in v3.8.0
func (*LoginMgr) LongConnMgr ¶ added in v3.8.0
func (u *LoginMgr) LongConnMgr() *interaction.LongConnMgr
func (*LoginMgr) MsgKvListener ¶ added in v3.5.0
func (u *LoginMgr) MsgKvListener() open_im_sdk_callback.OnMessageKvInfoListener
func (*LoginMgr) NetworkStatusChanged ¶ added in v3.4.0
func (*LoginMgr) SetAdvancedMsgListener ¶ added in v3.4.0
func (u *LoginMgr) SetAdvancedMsgListener(advancedMsgListener open_im_sdk_callback.OnAdvancedMsgListener)
func (*LoginMgr) SetAppBackgroundStatus ¶ added in v3.4.0
func (*LoginMgr) SetBatchMsgListener ¶ added in v3.4.0
func (u *LoginMgr) SetBatchMsgListener(batchMsgListener open_im_sdk_callback.OnBatchMsgListener)
func (*LoginMgr) SetConversationListener ¶ added in v3.4.0
func (u *LoginMgr) SetConversationListener(conversationListener open_im_sdk_callback.OnConversationListener)
func (*LoginMgr) SetCustomBusinessListener ¶ added in v3.5.0
func (u *LoginMgr) SetCustomBusinessListener(listener open_im_sdk_callback.OnCustomBusinessListener)
func (*LoginMgr) SetFriendListener ¶ added in v3.4.0
func (u *LoginMgr) SetFriendListener(friendListener open_im_sdk_callback.OnFriendshipListener)
func (*LoginMgr) SetGroupListener ¶ added in v3.4.0
func (u *LoginMgr) SetGroupListener(groupListener open_im_sdk_callback.OnGroupListener)
func (*LoginMgr) SetMessageKvInfoListener ¶ added in v3.4.0
func (u *LoginMgr) SetMessageKvInfoListener(messageKvInfoListener open_im_sdk_callback.OnMessageKvInfoListener)
func (*LoginMgr) SetUserListener ¶ added in v3.4.0
func (u *LoginMgr) SetUserListener(userListener open_im_sdk_callback.OnUserListener)
func (*LoginMgr) SignalingListener ¶ added in v3.5.0
func (u *LoginMgr) SignalingListener() open_im_sdk_callback.OnSignalingListener
func (*LoginMgr) UserListener ¶ added in v3.5.0
func (u *LoginMgr) UserListener() open_im_sdk_callback.OnUserListener