RecordCommand mixin
- Superclass constraints
- Mixin applications
Properties
- clientId ← String
-
no getterinherited
- clientPtr → int?
-
no setterinherited
- cluster ↔ String
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
设备ID
finalinherited
- isVirtualId ↔ bool
-
getter/setter pairinherited
- model → String
-
设备型号
finalinherited
- name → String
-
设备名称
finalinherited
- p2pConnectState ↔ ClientConnectState
-
getter/setter pairinherited
- password ↔ String
-
getter/setter pairinherited
- recordResult ↔ RecordResult
-
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
Methods
-
addCallback(
int cmd, CommandCallbackFunc func) → void -
inherited
-
addListener<
T> (T listener) → void -
inherited
-
changeClientId(
) → Future< bool> -
inherited
-
changedRecordVoice(
bool enable, {int timeout = 5}) → Future< bool> -
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 -
formatSD(
{int timeout = 5}) → Future< bool> - 格式化SD 卡
-
getClientId(
) → Future< String> -
inherited
-
getClientPtr(
) → Future< int> -
inherited
-
getDeviceDirectory(
) → Future< Directory> -
inherited
-
getMap(
String data) → Map -
inherited
-
getRecordParam(
{int timeout = 5}) → Future< bool> -
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
-
setCommandListener(
) → Future< void> -
设置指令监听
inherited
-
setRecordParams(
int enable, {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