RCKChatProvider class

Inheritance

Constructors

RCKChatProvider.new({required RCKEngineProvider engineProvider})

Properties

connectionStatus RCIMIWConnectionStatus?
no setter
conversation RCIMIWConversation
no setter
conversationDraft String?
no setter
engineProvider RCKEngineProvider
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isLongPressing bool
no setter
messageListKey GlobalKey<RCKMessageListState>
no setter
messages List<RCIMIWMessage>
no setter
multiSelectMode bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedMessages List<RCIMIWMessage>
final
speechToTextMessageIdsHasShown List<int>
no setter
speechToTextMessageIdsVisible Set<int>
no setter
unreadMentionedMessages List<RCIMIWMessage>?
no setter

Methods

addFileMessage(String localPath) Future<void>
addGifMessage(String localPath) Future<void>
addImageMessage(String localPath) Future<void>
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addLocationMessage(double longitude, double latitude, String poiName, String thumbnailPath) Future<void>
addSightMessage(String localPath, int duration, {BuildContext? context}) Future<void>
addSpeechToTextMessageIdHasShown(int messageId) → void
addSpeechToTextMessageIdVisible(int messageId) → void
addTextOrRefrenceMessage(String text, [RCIMIWMessage? referenceMessage, List<String>? mentionList]) Future<void>
addVoiceMessage(String localPath, int duration) Future<void>
cancelDownloadMediaMessage(RCIMIWMediaMessage message, {dynamic downloadCancel(RCIMIWMediaMessage? message)?}) Future<void>
clearDraft() → void
clearUnread() → void
deleteMessage(List<RCIMIWMessage> deleteMessage, BuildContext context) Future<void>
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
downloadMediaMessage(RCIMIWMediaMessage message, {dynamic downloaded(int? code, RCIMIWMediaMessage? message)?, dynamic downloading(RCIMIWMediaMessage? message, int? progress)?, dynamic downloadCancel(RCIMIWMediaMessage? message)?}) Future<void>
downloadVoiceMessage(RCIMIWMediaMessage message, bool autoPlay, BuildContext? context) Future<void>
fetchUnreadMentiondMessage() → void
getDraft() → void
initMessages(RCIMIWConversation con, {dynamic onSuccess()?}) → void
jumpToScrollOffset() → void
loadOlderMessages() Future<void>
messageListScrollToBottom() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
recallMessage(RCIMIWMessage recallMessage, BuildContext context) Future<void>
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeSpeechToTextMessageIdVisible(int messageId) → void
removeUnreadMentiondMessage(RCIMIWMessage removeMessage) → void
saveDraft(String draft) → void
saveScrollOffset() → void
sendMessage(RCIMIWMessage sendMessage, {bool isResend = false, bool isForward = false, BuildContext? context}) Future<void>
setIsLongPressing(bool isLongPressing) → void
setMultiSelectMode(bool isMultiSelectMode) → void
stopPlayVoiceAndReference(List<RCIMIWMessage> messages, BuildContext context) → void
toggleMessageSelection(RCIMIWMessage message, BuildContext context) → void
toString() String
A string representation of this object.
inherited
voiceMessageToText(RCIMIWVoiceMessage message) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited