Documentation
¶
Index ¶
- type Base
- type OnAdvancedMsgListener
- type OnBatchMsgListener
- type OnConnListener
- type OnConversationListener
- type OnCustomBusinessListener
- type OnFriendshipListener
- type OnFriendshipListenerSdk
- type OnGroupListener
- type OnListenerForService
- type OnMessageKvInfoListener
- type OnSignalingListener
- type OnUserListener
- type SendMsgCallBack
- type UploadFileCallback
- type UploadLogProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnAdvancedMsgListener ¶
type OnBatchMsgListener ¶
type OnConnListener ¶
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 SendMsgCallBack ¶
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
Click to show internal directories.
Click to hide internal directories.