Nim class

Properties

chatRoomEventStream Stream<ChatRoomStatus>
聊天室状态流
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
kickOutStream Stream<KickOut>
聊天室踢出状态流
read-only, inherited
messageStream Stream<Message>
消息流
read-only, inherited
onlineStatusStream Stream<StatusType>
在线状态流
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemMessageStream Stream<SystemMessage>
系统消息流
read-only, inherited

Methods

ackAddFriendRequest(String account, {bool agree}) Future<void>
处理添加好友申请(同意/拒绝)
inherited
addToBlackList(String account) Future<void>
加入黑名单
inherited
deleteFriend(String account, {bool removeAlias = false}) Future<void>
删除好友
inherited
dispose() → void
释放资源
inherited
enterChatRoom(String chatRoomId, {int retryCount = 3}) Future<EnterChatRoomResult>
进入聊天室
inherited
exitChatRoom(String chatRoomId) Future<void>
退出聊天室
inherited
fetchBlackList() Future<List<NimUser>>
获取黑名单列表
inherited
fetchChatRoomInfo(String chatRoomId) Future<ChatRoomInfo>
获取聊天室信息
inherited
fetchMessageList(String sessionId, {SessionType sessionType, Message anchor, int limit = 20}) Future<List<Message>>
获取消息列表
inherited
fetchMuteList() Future<List<NimUser>>
获取免打扰列表
inherited
fetchMyFriendList() Future<List<NimUser>>
获取我的好友列表
inherited
fetchSessionList() Future<List<RecentSession>>
获取会话列表
inherited
init(String appKey) Future<void>
初始化
isInBlackList(String account) Future<bool>
判断用户是否在黑名单
inherited
isMute(String account) Future<bool>
判断用户是免打扰
inherited
isMyFriend(String account) Future<bool>
判断用户是好友
inherited
login({String account, String token}) Future<void>
登录
inherited
logout() Future<void>
登出
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeFromBlackList(String account) Future<void>
移出黑名单
inherited
requestAddFriend({String account, P2PVerifyType verifyType, String message = ''}) Future<void>
请求添加好友
inherited
sendAudioMessage({String sessionId, SessionType type, File audioFile, Duration duration}) Future<void>
发送音频消息
inherited
sendCustomMessage({String sessionId, SessionType type, String attachmentString}) Future<void>
发送自定义消息
inherited
sendFileMessage({String sessionId, SessionType type, File file, String displayName}) Future<void>
发送文件消息
inherited
sendImageMessage({String sessionId, SessionType type, File imageFile}) Future<void>
发送图片消息
inherited
sendLocationMessage({String sessionId, SessionType type, double latitude, double longitude, String address}) Future<void>
发送位置消息
inherited
sendTextMessage({String sessionId, SessionType type, String content}) Future<void>
发送文字消息
inherited
sendVideoMessage({String sessionId, SessionType type, File videoFile, Duration duration, int width, int height, String displayName}) Future<void>
发送视频消息
inherited
setMute(String account, {bool mute}) Future<void>
是否接收用户account的消息
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance Nim
read / write