EChatFlutterSdk class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
clearUserInfo()
→ Future<bool>
-
会员信息清除
-
closeAllChats()
→ Future<bool>
-
关闭所有对话
-
closeConnection()
→ Future<bool>
-
关闭链接
-
getUnreadMsgCount(void msgCountCallBack(int count))
→ Future<void>
-
获取消息总数
-
getUserInfo()
→ Future<EchatUserInfo?>
-
会员信息获取
-
init()
→ Future<void>
-
sdk初始化: 需要在setConfig之后调用
-
openBox({String? echatTag})
→ Future<void>
-
打开消息盒子
-
openChat({required int companyId, EchatVisEvtModel? visEvt, String? echatTag, String? myData, String? routeEntranceId, String? acdStaffId, String? acdType, EchatFMModel? fm})
→ Future<void>
-
跳转咨询控制器
-
setConfig({String? serverUrl, required String appId, required String appSecret, required String serverAppId, required String serverEncodingKey, required String serverToken, required int companyId, required bool isAgreePrivacy})
→ Future<void>
-
sdk设置
serverUrl
: 服务器地址,不填写即为默认;形如:https://e.echatsoft.com
appId
: app唯一ID
appSecret
: app密钥
serverAppId
: API接入ID
serverEncodingKey
: 消息加密key
serverToken
: API接入Token
companyId
: 公司Id, 如果是多商户接入则写入平台公司Id,如果是单商户接入则写入公司Id
isAgreePrivacy
: 是否同意隐私协议
-
setDebug({required bool debug})
→ Future<void>
-
SDK 调试日志
debug
: true: 开启debug模式; false: 关闭debug模式
-
setPushInfo({required String pushInfo})
→ Future<bool>
-
-
setUserInfo(EchatUserInfo userInfo)
→ Future<void>
-
设置会员