open_im_sdk_callback

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base interface {
	OnError(errCode int32, errMsg string)
	OnSuccess(data string)
}

type OnAdvancedMsgListener

type OnAdvancedMsgListener interface {
	OnRecvNewMessage(message string)
	OnRecvC2CReadReceipt(msgReceiptList string)
	OnRecvGroupReadReceipt(groupMsgReceiptList string)

	OnNewRecvMessageRevoked(messageRevoked string)
	OnRecvMessageExtensionsChanged(msgID string, reactionExtensionList string)
	OnRecvMessageExtensionsDeleted(msgID string, reactionExtensionKeyList string)
	OnRecvMessageExtensionsAdded(msgID string, reactionExtensionList string)
	OnRecvOfflineNewMessage(message string)
	OnMsgDeleted(message string)
	OnRecvOnlineOnlyMessage(message string)
}

type OnBatchMsgListener

type OnBatchMsgListener interface {
	OnRecvNewMessages(messageList string)
	OnRecvOfflineNewMessages(messageList string)
}

type OnConnListener

type OnConnListener interface {
	OnConnecting()
	OnConnectSuccess()
	OnConnectFailed(errCode int32, errMsg string)
	OnKickedOffline()
	OnUserTokenExpired()
}

type OnConversationListener

type OnConversationListener interface {
	OnSyncServerStart()
	OnSyncServerFinish()
	//OnSyncServerProgress(progress int)
	OnSyncServerFailed()
	OnNewConversation(conversationList string)
	OnConversationChanged(conversationList string)
	OnTotalUnreadMessageCountChanged(totalUnreadCount int32)
	OnConversationUserInputStatusChanged(change string)
}

type OnCustomBusinessListener

type OnCustomBusinessListener interface {
	OnRecvCustomBusinessMessage(businessMessage string)
}

type OnFriendshipListener

type OnFriendshipListener interface {
	OnFriendApplicationAdded(friendApplication string)
	OnFriendApplicationDeleted(friendApplication string)
	OnFriendApplicationAccepted(friendApplication string)
	OnFriendApplicationRejected(friendApplication string)
	OnFriendAdded(friendInfo string)
	OnFriendDeleted(friendInfo string)
	OnFriendInfoChanged(friendInfo string)
	OnBlackAdded(blackInfo string)
	OnBlackDeleted(blackInfo string)
}

type OnFriendshipListenerSdk

type OnFriendshipListenerSdk interface {
	OnFriendApplicationAdded(friendApplication model_struct.LocalFriendRequest)
	OnFriendApplicationDeleted(friendApplication model_struct.LocalFriendRequest)
	OnFriendApplicationAccepted(friendApplication model_struct.LocalFriendRequest)
	OnFriendApplicationRejected(friendApplication model_struct.LocalFriendRequest)
	OnFriendAdded(friendInfo model_struct.LocalFriend)
	OnFriendDeleted(friendInfo model_struct.LocalFriend)
	OnFriendInfoChanged(friendInfo model_struct.LocalFriend)
	OnBlackAdded(blackInfo model_struct.LocalBlack)
	OnBlackDeleted(blackInfo model_struct.LocalBlack)
}

func NewOnFriendshipListenerSdk

func NewOnFriendshipListenerSdk(listener func() OnFriendshipListener) OnFriendshipListenerSdk

type OnGroupListener

type OnGroupListener interface {
	OnJoinedGroupAdded(groupInfo string)
	OnJoinedGroupDeleted(groupInfo string)
	OnGroupMemberAdded(groupMemberInfo string)
	OnGroupMemberDeleted(groupMemberInfo string)
	OnGroupApplicationAdded(groupApplication string)
	OnGroupApplicationDeleted(groupApplication string)
	OnGroupInfoChanged(groupInfo string)
	OnGroupDismissed(groupInfo string)
	OnGroupMemberInfoChanged(groupMemberInfo string)
	OnGroupApplicationAccepted(groupApplication string)
	OnGroupApplicationRejected(groupApplication string)
}

type OnListenerForService

type OnListenerForService interface {
	//有人申请进群
	OnGroupApplicationAdded(groupApplication string)
	//进群申请被同意
	OnGroupApplicationAccepted(groupApplication string)
	//有人申请添加你为好友
	OnFriendApplicationAdded(friendApplication string)
	//好友申请被同意
	OnFriendApplicationAccepted(groupApplication string)
	//收到新消息
	OnRecvNewMessage(message string)
}

type OnMessageKvInfoListener

type OnMessageKvInfoListener interface {
	OnMessageKvInfoChanged(messageChangedList string)
}

type OnSignalingListener

type OnSignalingListener interface {
	OnReceiveNewInvitation(receiveNewInvitationCallback string)

	OnInviteeAccepted(inviteeAcceptedCallback string)

	OnInviteeAcceptedByOtherDevice(inviteeAcceptedCallback string)

	OnInviteeRejected(inviteeRejectedCallback string)

	OnInviteeRejectedByOtherDevice(inviteeRejectedCallback string)
	//
	OnInvitationCancelled(invitationCancelledCallback string)
	//
	OnInvitationTimeout(invitationTimeoutCallback string)
	//
	OnHangUp(hangUpCallback string)

	OnRoomParticipantConnected(onRoomParticipantConnectedCallback string)

	OnRoomParticipantDisconnected(onRoomParticipantDisconnectedCallback string)
}

type OnUserListener

type OnUserListener interface {
	OnSelfInfoUpdated(userInfo string)
	OnUserStatusChanged(userOnlineStatus string)
}

type SendMsgCallBack

type SendMsgCallBack interface {
	Base
	OnProgress(progress int)
}

type UploadFileCallback

type UploadFileCallback interface {
	Open(size int64)                                                    // 文件打开的大小
	PartSize(partSize int64, num int)                                   // 分片大小,数量
	HashPartProgress(index int, size int64, partHash string)            // 每块分片的hash值
	HashPartComplete(partsHash string, fileHash string)                 // 分块完成,服务端标记hash和文件最终hash
	UploadID(uploadID string)                                           // 上传ID
	UploadPartComplete(index int, partSize int64, partHash string)      // 上传分片进度
	UploadComplete(fileSize int64, streamSize int64, storageSize int64) // 整体进度
	Complete(size int64, url string, typ int)                           // 上传完成
}

type UploadLogProgress

type UploadLogProgress interface {
	OnProgress(current int64, size int64)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL