CameraCommand mixin

Superclass constraints
Mixin applications

Properties

checkIntervalCommand CheckIntervalCommand?
getter/setter pair
clientId String
no getterinherited
clientPtr int?
no setterinherited
cluster String
getter/setter pairinherited
dismantleCommand DismantleCommand?
getter/setter pair
dvrCommand DVRCommand?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
设备ID
finalinherited
isVirtualId bool
getter/setter pairinherited
ledCommand LedCommand?
getter/setter pair
lightCommand LightCommand?
getter/setter pair
mobileCommand MobileCommand?
getter/setter pair
model String
设备型号
finalinherited
motorCommand MotorCommand?
getter/setter pair
multipleZoomCommand MultipleZoomCommand?
getter/setter pair
name String
设备名称
finalinherited
p2pConnectState ClientConnectState
getter/setter pairinherited
password String
getter/setter pairinherited
passwordCommand PasswordCommand?
getter/setter pair
powerCommand PowerCommand?
getter/setter pair
powerSwitchCommand PowerSwitchCommand?
getter/setter pair
presetCruiseCommand PresetCruiseCommand?
getter/setter pair
privacyPositionCommand PrivacyPositionCommand?
getter/setter pair
qiangQiuCommand QiangQiuCommand?
getter/setter pair
recordResolutionCommand RecordResolutionCommand?
getter/setter pair
redBlueLightCommand RedBlueLightCommand?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sirenCommand SirenCommand?
getter/setter pair
statusResult StatusResult?
getter/setter pairinherited
supplier String
getter/setter pairinherited
username String
getter/setter pairinherited
whiteLedCommand WhiteLedCommand?
getter/setter pair
wifiCommand WifiCommand?
getter/setter pair
wifiEnhancedModeCommand WifiEnhancedModeCommand?
getter/setter pair

Methods

addCallback(int cmd, CommandCallbackFunc func) → void
inherited
addListener<T>(T listener) → void
inherited
cameraCommand(StatusResult result) Future<void>
changeCameraLens(String value, {int timeout = 5}) Future<bool>
双目切换镜头
changeClientId() Future<bool>
inherited
changeDateTimeType(int value, {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
displayPassword(String password) String
inherited
getClientId() Future<String>
inherited
getClientPtr() Future<int>
inherited
getDeviceDirectory() Future<Directory>
inherited
getMap(String data) Map
inherited
getServiceParam() Future<String>
inherited
getStatus({int timeout = 5, bool cache = true}) Future<StatusResult?>
获取设备状态 @param cache 是否使用缓存,默认为true 使用缓存
override
login(String username, String password, {int timeout = 5}) Future<StatusResult?>
登录指令
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 是否进行局域网搜索 @param recount 重连次数
inherited
reboot({int timeout = 5}) Future<bool>
重启指令
removeCallback(int cmd) → void
inherited
removeCommandListener() → void
移除指令监听
inherited
removeListener<T>(T listener) → void
inherited
restoreFactory({int timeout = 5}) Future<bool>
重置指令
setAppVersionOemId(String appOemid, String appVersion, int aacSupport, {int timeout = 5}) Future<bool>
app版本号传给固件
setCommandListener() Future<void>
设置指令监听
inherited
setDeviceName(String name, {int timeout = 5}) Future<bool>
修改设备名字
toString() String
A string representation of this object.
inherited
updateAdminPassword(String password, {required int userid, int timeout = 5}) Future<bool>
updateDateTime({int timeout = 5}) Future<bool>
updateFirmware(String server, String file, {int timeout = 5}) Future<bool>
updateOwnerPassword(String userId, String password, {int timeout = 5}) Future<bool>
updatePushUser({int timeout = 5}) Future<bool>
云存储授权
waitCommandResult(CommandFilterFunc filterFunc, int timeout) Future<CommandResult>
等待指令返回 @param filterFunc 指令筛选条件 @param timeout 等待时间 秒为单位
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