Dim class

Constructors

Dim()
factory
Dim.private(MethodChannel _methodChannel, EventChannel _eventChannel)

Properties

onMessage → Stream
read-only
platformVersion → Future<String>
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addFriend(String identifier) → Future
添加好友
delConversation(String identifier) → Future
删除会话
delFriend(String identifier) → Future
删除好友
getConversations() → Future
获取会话列表
getMessages(String identifier, [ int count = 50, int ctype = 1 ]) → Future
获取一个会话的消息,暂不支持流式查询 identifier 会话id count 获取消息数量 ,默认50条 ctype 1 私信,2群聊 ,默认是私信
getUsersProfile(List<String> users) → Future
获取用户资料 param user is a list "usersf1","jiofoea2"
imLogin(String identifier, String sig) → Future
im登录
imLogout() → Future
im登出
init(int appid) → Future
im初始化
listFriends(String identifier) → Future
获取好友列表
opFriend(String identifier, String opTypeStr) → Future
处理好友的请求,接受/拒绝 opTypeStr 接受传 Y opTypeStr 拒绝传 N
postDataTest() → Future
测试使用eventChannel推送数据过来
sendImageMessages(String identifier, String imagePath) → Future
发送图片消息 imagePath eg for android : Environment.getExternalStorageDirectory() + "/DCIM/Camera/1.jpg"
sendLocationMessages(String identifier, double lat, double lng, String desc) → Future
发送位置消息 eg: lat 113.93 lng 22.54 desc 腾讯大厦
sendSoundMessages(String identifier, String soundPath, [ int duration = 10 ]) → Future
发送语音消息 soundPath eg for android : Environment.getExternalStorageDirectory() + "/sound.mp3"
sendTextMessages(String identifier, String content) → Future
发送文本消息
setUsersProfile(int gender, String nick, String faceUrl) → Future
设置个人资料
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited