PocHandler class
poc处理器*
Constructors
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- cancelPTTTimer ↔ Timer?
-
getter/setter pair
- lastCheckLoginTime ↔ int
-
getter/setter pair
- lastLocationTime ↔ int
-
getter/setter pair
- lastRecordAndPlayTime ↔ int
-
getter/setter pair
-
needAutoMonitorGroupIds
↔ List<
int> -
getter/setter pair
- needOnline ↔ bool
-
getter/setter pair
- tag ↔ String
-
getter/setter pair
- timer ↔ Timer?
-
getter/setter pair
- waitShowUserGroupId ↔ int
-
getter/setter pair
Static Methods
-
AddMonitorGroup(
int groupId, bool auto) → void - 监听群组
-
cancelCancelPTTTimer(
) → dynamic -
CancelLogin(
) → void - 取消登录
-
checkHasGroup(
int groupId, {bool showToast = true}) → bool -
checkHasGroupExceptContact(
{bool showToast = true}) → bool -
checkHasOtherGroupExceptContact(
{bool showToast = true}) → bool -
checkHasUser(
int userId, {bool showToast = true}) → bool -
checkIsInGroup(
{bool showToast = true}) → bool - 检查是否在组
-
checkIsOnline(
{bool showToast = true}) → bool - 检查是否在线
-
checkLocation(
) → void -
checkMonitorGroup(
) → void - 检查监听群组
-
checkNoTmpGroup(
{bool showToast = true}) → bool -
checkOnline(
) → void -
checkSpeakerView(
) → void -
checkUserIdList(
List< int> userIdList, {bool showToast = true}) → bool -
closePTT(
bool closePTT) → void -
DisJoinUser(
List< int> userIdList) → void - 强拆
-
EndPTT(
) → void - 停止对讲
-
EnterGroup(
int groupId) → void - 进入群组
-
EnterNextGroup(
) → void - 进入下一个群组
-
EnterPreGroup(
) → void - 进入上一个群组
-
ForceUserExit(
List< int> userIdList) → void - 遥毙
-
GetGpsInterval(
) → Future< int> - 发送消息给用户 发送消息给群组 发送字节消息给群组 发送字节消息给群组 获取定位间隔
-
getPocString(
int code) → String? -
getSpeakingText(
) → String -
getTranslation(
String key) → String -
HandleDisJoinUser(
dynamic params) → void - 强拆结果,int code,String users,int size
-
HandleEnterGroup(
dynamic params) → void - 进组结果,临时呼叫成功不会回调这里
-
HandleForceUserExit(
dynamic params) → void - 遥毙结果,int code,String users,int size
-
HandleInviteTmpGroup(
dynamic params) → void - 临时呼叫结果,int code,String users,int size
-
HandleLeaveGroup(
dynamic params) → void - 退组结果,long groupId,int code
-
handleMethodCall(
MethodCall methodCall) → dynamic - 处理方法回调
-
HandlePullUsersToGroup(
dynamic params) → void - 强拉结果,int code,String users,int size
-
HandleStartPTT(
int code) → void - 开始讲话失败
-
hasPrivilege(
int privilege) → dynamic -
init(
) → dynamic - 初始化
-
initMethodNameMap(
) → void - 初始化方法集合
-
initPocStringKey(
) → void -
InviteTmpGroup(
List< int> userIdList) → void - 临时呼叫
-
LeaveGroup(
) → void - 退出群组
-
Login(
String account, String password) → void - 登录
-
Logout(
) → void -
NotifyChat(
dynamic params) → void - 收到文本消息,String msg, long userId, long groupId, String userName
-
NotifyData(
dynamic params) → void - 收到字节消息,byte[] data, long userId,String userName
-
NotifyMsg(
dynamic params) → void - 收到文本消息,String msg, long userId, long groupId, String userName
-
onOffline(
) → void - 离线处理
-
onOnline(
) → void - 在线处理
-
playBeepAudio(
) → void - 播放提示音
-
PlayData(
dynamic dynamic) → Future< void> - 播放录音,由于性能问题,已经在原生播放,此处做其他处理
-
playPocString(
int code) → dynamic -
PlaySound(
int index) → void - 播放提示音,0:自己开始讲话,1:自己结束讲话,2:讲话失败,3:别人开始讲话,4:别人结束讲话
-
playText(
dynamic text, dynamic interrupt) → void - 播放tts
-
PullUsersToGroup(
List< int> userIdList) → void - 强拉
-
receiveLocation(
double lat, double lng, double speed, double course, double altitude) → dynamic -
RecordData(
Uint8List data) → void - 传入录音数据
-
RemoveMonitorGroup(
int groupId) → void - 取消监听群组
-
resetCheckedUserIds(
) → void - 重置选择用户id集合
-
SendChat(
int id, String data, int type, int mode) → void - 发送离线消息
-
SendGroupMsg(
int id, String msg) → void - 发送消息给群组
-
SendUserMsg(
int id, String msg) → void - 发送消息给用户
-
SetAudioAdaptive(
int auto) → void - 设置语音格式自适应解码,0:否,1:是
-
SetAudioFormat(
int type) → void - 设置语音格式,0:Speex 1:Evrc
-
setGroupsUserCount(
List groups) → void - 设置群组用户数
-
SetHeartbeatMode(
int mode) → void - 手动发一次心跳 设置心跳模式,0:定时心跳 1:动态心跳
-
SetHeartTime(
int second) → void - 设置心跳间隔
-
SetInfo(
dynamic params) → void - 有提示信息,String info,int code
-
SetLanguage(
int language) → void - 设置语言,0:中文,1:英文
-
SetLocation(
String location) → Future< void> - 设置时区 设置讲话携带组名 上传额外信息 设置定位
-
SetLogType(
int type) → void - 设置日志类型,type,0:不输出 1:输出
-
SetParam(
String ip, String account, String pwd) → void - 设置账号密码(明文密码)
-
SetParamEncode(
String ip, String account, String pwd) → void - 设置账号密码(加密密码)
-
SetPttTimeLimit(
int second) → void - 设置讲话时长限制
-
SetTalker(
dynamic params) → void - long userId,long groupId, String userName, boolean hideTalker
-
SetUrl(
String url) → void - 设置url
-
setWaitShowUserGroupId(
int id) → void -
ShowLoginingView(
dynamic params) → void -
ShowLoginView(
dynamic params) → void -
ShowLogoutView(
dynamic params) → void - 注销中
-
ShowUserListView(
dynamic params) → Future< void> -
SingleStartPTT(
List< int> userIdList) → void - 不建立临时群组的临时呼叫
-
sortGroupUsers(
dynamic group) → void - 群组用户排序
-
SOS(
) → void - SOS
-
startCancelPTTTimer(
) → dynamic - 讲话最多60s
-
StartPlay(
dynamic params) → void - 开始播放回调
-
startPOCThread(
) → void - 启动poc
-
StartPTT(
) → void - 开始对讲
-
StartRecord(
dynamic params) → void - 开始录音回调
-
startTimer(
) → void - 开始定时器*
-
StopPlay(
dynamic params) → void - 结束播放回调
-
StopRecord(
dynamic params) → void - 结束录音回调
-
stopTimer(
) → void - 停止定时器*
-
TaskRunReturn(
dynamic dynamic) → Future< void> - -----------------------------------回调---------------------------- poc任务开始运行
-
UpdateGroup(
dynamic params) → void - 群组有更新
-
updateGroupData(
dynamic obj) → void - 更新群组和成员数据
-
UpdateMonitor(
dynamic params) → void -
UpdateName(
String name) → void - 自己名称更新
-
UpdatePrivilege(
int privilege) → void - 自己权限更新
-
UpdateUserList(
dynamic params) → void - 用户列表更新