open_im_sdk_callback

package
v3.8.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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)
	OnNewRecvMessageRevoked(messageRevoked 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()
	OnUserTokenInvalid(errMsg string)
}

type OnConversationListener

type OnConversationListener interface {
	OnSyncServerStart(reinstalled bool)
	OnSyncServerFinish(reinstalled bool)
	OnSyncServerProgress(progress int)
	OnSyncServerFailed(reinstalled bool)
	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 Someone applied to join a group
	OnGroupApplicationAdded(groupApplication string)
	// OnGroupApplicationAccepted Group join application has been accepted
	OnGroupApplicationAccepted(groupApplication string)
	// OnFriendApplicationAdded Someone applied to add you as a friend
	OnFriendApplicationAdded(friendApplication string)
	// OnFriendApplicationAccepted Friend request has been accepted
	OnFriendApplicationAccepted(friendApplication string)
	// OnRecvNewMessage Received a new message
	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)
	OnUserCommandAdd(userCommand string)
	OnUserCommandDelete(userCommand string)
	OnUserCommandUpdate(userCommand string)
}

type SendMsgCallBack

type SendMsgCallBack interface {
	Base
	OnProgress(progress int)
}

type UploadFileCallback

type UploadFileCallback interface {
	// Open a file with a given size
	Open(size int64)
	// PartSize Set the size of each part and the total number of parts
	PartSize(partSize int64, num int)
	// HashPartProgress Progress of hashing each part, including the part index, size, and hash value
	HashPartProgress(index int, size int64, partHash string)
	// HashPartComplete All parts have been hashed, providing the combined hash of all parts and the final file hash
	HashPartComplete(partsHash string, fileHash string)
	// UploadID Upload ID is generated and provided
	UploadID(uploadID string)
	// UploadPartComplete A specific part has completed uploading, providing the part index, size, and hash value
	UploadPartComplete(index int, partSize int64, partHash string)
	// UploadComplete The entire file upload progress, including the file size, stream size, and storage size
	UploadComplete(fileSize int64, streamSize int64, storageSize int64)
	// Complete The file upload is complete, providing the final size, URL, and type of the file
	Complete(size int64, url string, typ int)
}

type UploadLogProgress added in v3.5.0

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