AlarmCommand mixin
- Superclass constraints
- Mixin applications
Properties
- autoRecordVideoMode ↔ int?
-
getter/setter pair
- clientId ← String
-
no getterinherited
- clientPtr → int?
-
no setterinherited
- cluster ↔ String
-
getter/setter pairinherited
- distanceAdjust ↔ int?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- humanDetection ↔ int?
-
getter/setter pair
- humanLevel ↔ int?
-
getter/setter pair
- humanoidDetection ↔ int?
-
getter/setter pair
- id → String
-
设备ID
finalinherited
- isVirtualId ↔ bool
-
getter/setter pairinherited
- model → String
-
设备型号
finalinherited
- motionLevel ↔ int?
-
getter/setter pair
- name → String
-
设备名称
finalinherited
- p2pConnectState ↔ ClientConnectState
-
getter/setter pairinherited
- password ↔ String
-
getter/setter pairinherited
- pirCloudVideoDuration ↔ int?
-
getter/setter pair
- pirDetection ↔ int?
-
getter/setter pair
- pirLevel ↔ int?
-
getter/setter pair
- pirPushEnable ↔ bool?
-
getter/setter pair
- pirPushVideoEnable ↔ bool?
-
getter/setter pair
- pushEnable ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supplier ↔ String
-
getter/setter pairinherited
- username ↔ String
-
getter/setter pairinherited
- videoDuration ↔ int?
-
getter/setter pair
- videoEnable ↔ int?
-
getter/setter pair
Methods
-
addCallback(
int cmd, CommandCallbackFunc func) → void -
inherited
-
addListener<
T> (T listener) → void -
inherited
-
changeClientId(
) → Future< bool> -
inherited
-
checkDeviceAp(
String id, {int count = 0}) → Future< bool> -
inherited
-
cleanListener(
) → void -
inherited
-
connectByTime(
{required int clientPtr, required bool lanScan, required int reConnectCount, required int connectType}) → Future< int> -
inherited
-
deviceDestroy(
) → Future< void> -
inherited
-
disconnect(
) → Future< bool> -
断开连接
如果设备正处于连接状态,需要等待设备退出连接后再调用
bool ret = await AppP2PApi().clientDisconnect(clientPtr);调用clientDisconnect如果返回true,则说明设备曾经连接成功, 需要等待设备回调disconnect才能确保设备已经完全断开连接 需要调用await _waitDisconnected()来确认设备已经完全断开inherited -
getAlarmParam(
{int timeout = 5}) → Future< bool> -
getAlarmPirVideoPush(
{int timeout = 5}) → Future< bool> - 获取pir视频录像状态(人体侦测)
-
getAlarmPlan(
int command, int type, {int timeout = 5}) → Future< bool> - 获取报警计划 type == 2 报警计划
-
getAlarmZone(
int command, {int timeout = 5}) → Future< bool> - 获取绘制区域 command ===1 /移动侦测区域 command ===3 /人形侦测区域
-
getClientId(
) → Future< String> -
inherited
-
getClientPtr(
) → Future< int> -
inherited
-
getDetectionRange(
{int timeout = 5}) → Future< bool> - 获取侦测距离
-
getDeviceDirectory(
) → Future< Directory> -
inherited
-
getHumanDetectionLevel(
{int timeout = 5}) → Future< bool> -
getMap(
String data) → Map -
inherited
-
getPirDetection(
{int timeout = 5}) → Future< bool> - 人体侦测等级 关-----0 低-----1 中-----2 高-----3
-
getServiceParam(
) → Future< String> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners<
T> (void callback(T listener)) → void -
inherited
-
p2pConnect(
{bool lanScan = true, int reConnectCount = 2, required int connectType}) → Future< ClientConnectState> -
进行连接
@param
lanScan是否进行局域网搜索 @paramrecount重连次数inherited -
removeCallback(
int cmd) → void -
inherited
-
removeCommandListener(
) → void -
移除指令监听
inherited
-
removeListener<
T> (T listener) → void -
inherited
-
setAlarmMotion(
int motion_push_plan_enable, {int timeout = 5}) → Future< bool> - 设置报警计划 command == 2 报警计划
-
setAlarmMotionDetection(
bool enable, int level, {int timeout = 5, int? videoDuration}) → Future< bool> - 移动侦测等级
-
setAlarmPirVideoPush(
{int? pirPushEnable, int? pirVideoEnable, int? pirVideoDuration, int? autoRecordMode, int timeout = 5}) → Future< bool> - 设置pir视频录像状态(人体侦测)
-
setAlarmPlan(
int command, int motion_push_plan_enable, int motion_push_plan1, int motion_push_plan2, int motion_push_plan3, int motion_push_plan4, int motion_push_plan5, int motion_push_plan6, int motion_push_plan7, int motion_push_plan8, int motion_push_plan9, int motion_push_plan10, int motion_push_plan11, int motion_push_plan12, int motion_push_plan13, int motion_push_plan14, int motion_push_plan15, int motion_push_plan16, int motion_push_plan17, int motion_push_plan18, int motion_push_plan19, int motion_push_plan20, int motion_push_plan21, {int timeout = 5}) → Future< bool> - 设置报警计划 command == 2 报警计划
-
setAlarmZone(
int command, int pd_reign0, int pd_reign1, int pd_reign2, int pd_reign3, int pd_reign4, int pd_reign5, int pd_reign6, int pd_reign7, int pd_reign8, int pd_reign9, int pd_reign10, int pd_reign11, int pd_reign12, int pd_reign13, int pd_reign14, int pd_reign15, int pd_reign16, int pd_reign17, {int timeout = 5}) → Future< bool> - 设置绘制区域 command ===1 /移动侦测区域 command ===3 /人形侦测区域
-
setCommandListener(
) → Future< void> -
设置指令监听
inherited
-
setDetectionRange(
int distance, {int timeout = 5}) → Future< bool> - 设置侦测距离
-
setHuanoidDetection(
int value, {int timeout = 5}) → Future< bool> - 设置人形检测开关
-
setHumanDetectionLevel(
int sensitive, {int timeout = 5}) → Future< bool> - 人形侦测等级 关-----0 高-----1 中-----2 低-----3
-
setPriDetection(
int detection, {int timeout = 5}) → Future< bool> -
setPriPush(
{bool pushEnable = true, bool videoEnable = true, int videoDuration = 15, int autoRecordMode = 0, int timeout = 5}) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
-
waitCommandResult(
CommandFilterFunc filterFunc, int timeout) → Future< CommandResult> -
等待指令返回
@param
filterFunc指令筛选条件 @paramtimeout等待时间 秒为单位inherited -
write(
ClientChannelType channel, Uint8List buffer, int timeout) → Future< bool> -
数据发送,用于发送原始数据
inherited
-
writeCgi(
String cgi, {int timeout = 5, bool needLogin = true}) → Future< bool> -
发送CGI指令
底层封装CGI数据格式
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited