IMManager class
IM 初始化管理类
Constructors
- IMManager.new()
- 实例类
- IMManager.create()
-
这里是单例
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkListener ↔ V2TimSDKListener
-
- 添加 V2TimSDKListener 的事件监听器,sdkListener 是 V2TimSDKListener 的实现类
getter/setter pair - v2timAdvancedMsgListener ↔ V2TimAdvancedMsgListener
-
消息监听器
getter/setter pair
- v2timConversationListener ↔ V2TimConversationListener
-
会话监听器
getter/setter pair
- v2timGroupListener ↔ V2TimGroupListener
-
群消息监听器
getter/setter pair
Methods
-
deleteConversation(
String conversationID, {dynamic funCallBack(bool bol)?}) → Future< bool> - 删除会话
-
getAllUnreadMsgCount(
dynamic cb(int? totals)?) → void - 获取总的未读消息数
-
imLogin(
String userID, String userSig, {ImCallback? callback}) → void - 登录
-
imLogOut(
{ImCallback? callback}) → void - 登出
-
init(
{required int sdkAppID, required IMInitCallback? callback, V2TimSDKListener? listener, V2TimAdvancedMsgListener? listeners, V2TimGroupListener? groupListener, V2TimConversationListener? conversationListener}) → Future - Im初始化
-
joinGroup(
String groupId, {ImCallback? callback}) → void -
加入群组
groupID
群ID 加入大群传大群id,房间群就传房间群ID -
loginStateCheck(
String userId, String userSig, ImCallback callback) → void - 检查登录状态,
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quitGroup(
String groupId, {ImCallback? callback}) → void -
退出群组
groupId
群ID -
sendGroupCustomMessage(
String userID, String userSig, {required String json, required String groupID, ImCallback? callback}) → void - 群聊自定义消息
-
sendMessage(
String id, String receiver, {String groupID = "", TIMValueCallback? callback}) → void - sendMessage发送消息 参数
-
sendMessageC2C(
BaseMessage baseMessage, {TIMValueCallback? callback}) → void -
setAllMessageAsRead(
{dynamic cb()?}) → void - 清除所有未读消息
-
setSelectedC2CMessageAsRead(
String userId, {ImCallback? callback}) → void - 选择c2c的会话已读
-
toString(
) → String -
A string representation of this object.
inherited
-
updateNoticeDot(
bool isVisible) → void -
通知是否展示小红点,
isVisible
ture表示展示
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited