CameraDevice class
- Inheritance
-
- Object
- BasisDevice
- P2PBasisDevice
- CameraDevice
- Mixed-in types
Constructors
Properties
- aiDetect ↔ AiDetect?
-
getter/setter pairinherited
- autoRecordVideoMode ↔ int?
-
getter/setter pairinherited
- brightness ↔ int
-
getter/setter pairinherited
- checkIntervalCommand ↔ CheckIntervalCommand?
-
getter/setter pairinherited
- clientId ← String
-
no getterinherited
- clientPtr → int?
-
no setterinherited
- cluster ↔ String
-
getter/setter pairinherited
- connectState ↔ CameraConnectState
-
getter/setter pair
- connectType ↔ int
-
getter/setter pair
- contrast ↔ int
-
getter/setter pairinherited
- customeZoneData ↔ Map?
-
获取绘制区域
command 1:移动侦测区域, 3:人形侦测区域, 5:离岗侦测区域, 7:脸侦测区域, 9:人脸识别区域
getter/setter pairinherited
- customSound ↔ CustomSound?
-
getter/setter pairinherited
- detectionRecordPlanData ↔ Map?
-
侦测计划录像计划指令
获取侦测计划录像
getter/setter pairinherited
- direction ↔ VideoDirection
-
getter/setter pairinherited
- dismantleCommand ↔ DismantleCommand?
-
getter/setter pairinherited
- distanceAdjust ↔ int?
-
getter/setter pairinherited
- dvrCommand ↔ DVRCommand?
-
getter/setter pairinherited
- editPassword ↔ bool
-
getter/setter pair
- full_color_default ↔ int
-
getter/setter pairinherited
- full_color_end ↔ int
-
getter/setter pairinherited
- full_color_end_hw ↔ int
-
getter/setter pairinherited
- full_color_mode ↔ int
-
getter/setter pairinherited
- full_color_show ↔ int
-
getter/setter pairinherited
- full_color_start ↔ int
-
getter/setter pairinherited
- full_color_start_hw ↔ int
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- humanDetection ↔ int?
-
getter/setter pairinherited
- humanFraming ↔ HumanFraming?
-
getter/setter pairinherited
- humanLevel ↔ int?
-
getter/setter pairinherited
- humanoidDetection ↔ int?
-
getter/setter pairinherited
- humanTracking ↔ HumanTracking?
-
getter/setter pairinherited
- humanZoom ↔ HumanZoom?
-
getter/setter pairinherited
- id → String
-
设备ID
finalinherited
- involume ↔ int?
-
getter/setter pairinherited
- ircut ↔ int
-
getter/setter pairinherited
- isBack ↔ bool
-
前后台标签
getter/setter pair
- isRemoteClose ↔ bool
-
getter/setter pair
- isVirtualId ↔ bool
-
getter/setter pairinherited
- keepAliveTimer ↔ Timer?
-
getter/setter pairinherited
- ledCommand ↔ LedCommand?
-
getter/setter pairinherited
- lightCommand ↔ LightCommand?
-
getter/setter pairinherited
- lightMode ↔ int?
-
getter/setter pairinherited
- mobileCommand ↔ MobileCommand?
-
getter/setter pairinherited
- model → String
-
设备型号
finalinherited
- motionAlarmPlanData ↔ Map?
-
getter/setter pairinherited
- motionLevel ↔ int?
-
getter/setter pairinherited
- motorCommand ↔ MotorCommand?
-
getter/setter pairinherited
- multipleZoomCommand ↔ MultipleZoomCommand?
-
getter/setter pairinherited
- name → String
-
设备名称
finalinherited
- night_vision_mode ↔ int
-
getter/setter pairinherited
- osdEnable ↔ int?
-
getter/setter pairinherited
- outvolume ↔ int?
-
getter/setter pairinherited
- p2pConnectState ↔ ClientConnectState
-
getter/setter pairinherited
- pageCount ↔ int
-
getter/setter pairinherited
- paramResult ↔ ParamResult?
-
getter/setter pairinherited
- password ↔ String
-
getter/setter pairinherited
- passwordCommand ↔ PasswordCommand?
-
getter/setter pairinherited
- pirCloudVideoDuration ↔ int?
-
getter/setter pairinherited
- pirDetection ↔ int?
-
getter/setter pairinherited
- pirLevel ↔ int?
-
getter/setter pairinherited
- pirPushEnable ↔ bool?
-
getter/setter pairinherited
- pirPushVideoEnable ↔ bool?
-
getter/setter pairinherited
- powerCommand ↔ PowerCommand?
-
getter/setter pairinherited
- powerSwitchCommand ↔ PowerSwitchCommand?
-
getter/setter pairinherited
- presetCruiseCommand ↔ PresetCruiseCommand?
-
getter/setter pairinherited
- privacyPositionCommand ↔ PrivacyPositionCommand?
-
getter/setter pairinherited
- pushEnable ↔ int?
-
getter/setter pairinherited
- qiangQiuCommand ↔ QiangQiuCommand?
-
getter/setter pairinherited
- realTimeRecordPlanData ↔ Map?
-
实时录像计划指令
获取实时计划录像
getter/setter pairinherited
-
recordFileList
↔ List<
RecordFile> -
getter/setter pairinherited
- recordResolutionCommand ↔ RecordResolutionCommand?
-
getter/setter pairinherited
- recordResult ↔ RecordResult
-
getter/setter pairinherited
- redBlueLightCommand ↔ RedBlueLightCommand?
-
getter/setter pairinherited
- resolution ↔ VideoResolution
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sirenCommand ↔ SirenCommand?
-
getter/setter pairinherited
- statusResult ↔ StatusResult?
-
getter/setter pairinherited
- supplier ↔ String
-
getter/setter pairinherited
- userid ↔ int
-
getter/setter pair
- username ↔ String
-
getter/setter pairinherited
- verifyListener ↔ CameraVerifyListener?
-
getter/setter pair
- verifyOffline ↔ bool
-
getter/setter pair
- videoDuration ↔ int?
-
getter/setter pairinherited
- videoEnable ↔ int?
-
getter/setter pairinherited
- videoFormat ↔ int?
-
getter/setter pairinherited
- videoPix ↔ int?
-
200w 还是300w 参数
getter/setter pairinherited
- wakeupState ↔ DeviceWakeupState?
-
getter/setter pairinherited
- wakeupTimer ↔ Timer?
-
getter/setter pair
- whiteLedCommand ↔ WhiteLedCommand?
-
getter/setter pairinherited
- whiteLightPlanData ↔ Map?
-
getter/setter pairinherited
- wifiCommand ↔ WifiCommand?
-
getter/setter pairinherited
- wifiEnhancedModeCommand ↔ WifiEnhancedModeCommand?
-
getter/setter pairinherited
Methods
-
addCallback(
int cmd, CommandCallbackFunc func) → void -
inherited
-
addListener<
T> (T listener) → void -
inherited
-
cameraCommand(
StatusResult result) → Future< void> -
inherited
-
cancelKeepAlive(
) → void -
inherited
-
changeBrightness(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeCameraLens(
String value, {int timeout = 5}) → Future< bool> -
双目切换镜头
inherited
-
changeClientId(
) → Future< bool> -
inherited
-
changeContrast(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeDateTimeType(
int value, {int timeout = 5}) → Future< bool> -
修改水印时间格式
inherited
-
changeDirection(
VideoDirection direction, {int timeout = 5}) → Future< bool> -
inherited
-
changedRecordVoice(
bool enable, {int timeout = 5}) → Future< bool> -
inherited
-
changeLightMode(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeNightVision(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeResolution(
VideoResolution resolution, {int timeout = 5}) → Future< bool> -
inherited
-
changeShowTime(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeVideoFormat(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeVideoPix(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
changeVolume(
int param, int value, {int timeout = 5}) → Future< bool> -
inherited
-
checkDeviceAp(
String id, {int count = 0}) → Future< bool> -
inherited
-
cleanListener(
) → void -
inherited
-
connect(
{bool lanScan = true, int connectCount = 3}) → Future< CameraConnectState> -
connectByTime(
{required int clientPtr, required bool lanScan, required int reConnectCount, required int connectType}) → Future< int> -
inherited
-
deleteRecordFile(
String recordName, {int timeout = 5}) → Future< bool> -
inherited
-
deviceDestroy(
) → Future< void> -
override
-
didChangeAccessibilityFeatures(
) → void -
Called when the system changes the set of currently active accessibility
features.
inherited
-
didChangeAppLifecycleState(
AppLifecycleState state) → void -
Called when the system puts the app in the background or returns
the app to the foreground.
override
-
didChangeLocales(
List< Locale> ? locales) → void -
Called when the system tells the app that the user's locale has
changed. For example, if the user changes the system language
settings.
inherited
-
didChangeMetrics(
) → void -
Called when the application's dimensions change. For example,
when a phone is rotated.
inherited
-
didChangePlatformBrightness(
) → void -
Called when the platform brightness changes.
inherited
-
didChangeTextScaleFactor(
) → void -
Called when the platform's text scale factor changes.
inherited
-
didChangeViewFocus(
ViewFocusEvent event) → void -
Called whenever the PlatformDispatcher receives a notification that the
focus state on a view has changed.
inherited
-
didHaveMemoryPressure(
) → void -
Called when the system is running low on memory.
inherited
-
didPopRoute(
) → Future< bool> -
Called when the system tells the app to pop the current route, such as
after a system back button press or back gesture.
inherited
-
didPushRoute(
String route) → Future< bool> -
Called when the host tells the application to push a new route onto the
navigator.
inherited
-
didPushRouteInformation(
RouteInformation routeInformation) → Future< bool> -
Called when the host tells the application to push a new
RouteInformation and a restoration state onto the router.
inherited
-
didRequestAppExit(
) → Future< AppExitResponse> -
Called when a request is received from the system to exit the application.
inherited
-
disconnect(
) → Future< bool> -
断开连接
如果设备正处于连接状态,需要等待设备退出连接后再调用
bool ret = await AppP2PApi().clientDisconnect(clientPtr);调用clientDisconnect如果返回true,则说明设备曾经连接成功, 需要等待设备回调disconnect才能确保设备已经完全断开连接 需要调用await _waitDisconnected()来确认设备已经完全断开override -
displayPassword(
String password) → String -
inherited
-
formatSD(
{int timeout = 5}) → Future< bool> -
格式化SD 卡
inherited
-
fullColorChangeNightVision(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
fullColorChangeNightVisionChild(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
fullColorTiming(
int start, int end, {int timeout = 5}) → Future< bool> -
inherited
-
fullColorTimingDefault(
int value, {int timeout = 5}) → Future< bool> -
inherited
-
getAlarmCustomeZone(
int command, {int timeout = 5, int sensor = 0}) → Future< bool> -
inherited
-
getAlarmParam(
{int timeout = 5}) → Future< bool> -
inherited
-
getAlarmPirVideoPush(
{int timeout = 5}) → Future< bool> -
获取pir视频录像状态(人体侦测)
inherited
-
getAlarmPlan(
int command, int type, {int timeout = 5}) → Future< bool> -
获取报警计划
type == 2 报警计划
inherited
-
getAlarmZone(
int command, {int timeout = 5}) → Future< bool> -
获取绘制区域
command ===1 /移动侦测区域
command ===3 /人形侦测区域
inherited
-
getAllLineFile(
) → List< RecordTimeLineFile> -
inherited
-
getCameraParams(
{int timeout = 5}) → Future< bool> -
inherited
-
getClientId(
) → Future< String> -
inherited
-
getClientPtr(
) → Future< int> -
inherited
-
getDetectionRange(
{int timeout = 5}) → Future< bool> -
获取侦测距离
inherited
-
getDetectionReocrdPlan(
{int timeout = 5}) → Future< bool> -
inherited
-
getDeviceDirectory(
) → Future< Directory> -
inherited
-
getHumanDetectionLevel(
{int timeout = 5}) → Future< bool> -
inherited
-
getMap(
String data) → Map -
inherited
-
getMotionAlarmPlan(
{int timeout = 5}) → Future< bool> -
inherited
-
getParams(
{int timeout = 5, bool cache = true}) → Future< ParamResult?> -
获取设备参数
@param
cache是否使用缓存,默认为true 使用缓存inherited -
getPirDetection(
{int timeout = 5}) → Future< bool> -
人体侦测等级
关-----0
低-----1
中-----2
高-----3
inherited
-
getRecordData(
String date, List< int> data, int timeout, int offset) → Future<bool> -
inherited
-
getRecordFile(
{int pageIndex = 0, int pageSize = 20, bool cache = true, bool supportRecordTypeSeach = false, String? dateName, int timeout = 5}) → Future< List< RecordFile> > -
inherited
-
getRecordLineFile(
String date, {bool cache = true, int timeout = 5}) → Future< List< RecordTimeLineFile> > -
inherited
-
getRecordParam(
{int timeout = 5}) → Future< bool> -
inherited
-
getRecordTypeSearchDate(
{int timeout = 5}) → Future< List< String> > -
inherited
-
getReocrdPlan(
{int timeout = 5}) → Future< bool> -
inherited
-
getServiceParam(
) → Future< String> -
inherited
-
getSnapshot(
String name, {int timeout = 5}) → Future< bool> -
获取截图快照
inherited
-
getStatus(
{int timeout = 5, bool cache = true}) → Future< StatusResult?> -
获取设备状态
@param
cache是否使用缓存,默认为true 使用缓存inherited -
getVideoDecodingMode(
{int timeout = 5}) → Future< bool> -
inherited
-
getVideoPix(
{int timeout = 5}) → Future< bool> -
inherited
-
getWhiteLightPlan(
{int timeout = 5}) → Future< bool> -
inherited
-
handleCancelBackGesture(
) → void -
Called when a predictive back gesture is canceled, indicating that no
navigation should occur.
inherited
-
handleCommitBackGesture(
) → void -
Called when a predictive back gesture is finished successfully, indicating
that the current route should be popped.
inherited
-
handleStartBackGesture(
PredictiveBackEvent backEvent) → bool -
Called at the start of a predictive back gesture.
inherited
-
handleUpdateBackGestureProgress(
PredictiveBackEvent backEvent) → void -
Called when a predictive back gesture moves.
inherited
-
keepAlive(
{int time = 10}) → void -
inherited
-
left(
{int timeout = 5}) → Future< bool> -
inherited
-
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
-
offlineSeconds(
) → Future< int> -
p2pConnect(
{bool lanScan = true, int reConnectCount = 2, required int connectType}) → Future< ClientConnectState> -
进行连接
@param
lanScan是否进行局域网搜索 @paramrecount重连次数inherited -
reboot(
{int timeout = 5}) → Future< bool> -
重启指令
inherited
-
removeCallback(
int cmd) → void -
inherited
-
removeCommandListener(
) → void -
移除指令监听
inherited
-
removeListener<
T> (T listener) → void -
inherited
-
requestWakeup(
) → void -
inherited
-
requestWakeupOnce(
) → void -
inherited
-
requestWakeupStatus(
) → void -
inherited
-
restoreFactory(
{int timeout = 5}) → Future< bool> -
重置指令
inherited
-
setAlarmCustomeZone(
{required List records, required int command, int timeout = 5, int sensor = 0}) → Future< bool> -
设置侦测区域
inherited
-
setAlarmMotion(
int motion_push_plan_enable, {int timeout = 5}) → Future< bool> -
设置报警计划
command == 2 报警计划
inherited
-
setAlarmMotionDetection(
bool enable, int level, {int timeout = 5, int? videoDuration}) → Future< bool> -
移动侦测等级
inherited
-
setAlarmPirVideoPush(
{int? pirPushEnable, int? pirVideoEnable, int? pirVideoDuration, int? autoRecordMode, int timeout = 5}) → Future< bool> -
设置pir视频录像状态(人体侦测)
inherited
-
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 报警计划
inherited
-
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 /人形侦测区域
inherited
-
setAppVersionOemId(
String appOemid, String appVersion, int aacSupport, {int timeout = 5}) → Future< bool> -
app版本号传给固件
inherited
-
setCameraCommand(
StatusResult result) → Future< void> -
inherited
-
setCommandListener(
) → Future< void> -
设置指令监听
inherited
-
setDetectionRange(
int distance, {int timeout = 5}) → Future< bool> -
设置侦测距离
inherited
-
setDetectionReocrdPlan(
{required List records, required int enable, int timeout = 5}) → Future< bool> -
设置侦测计划录像
inherited
-
setDeviceName(
String name, {int timeout = 5}) → Future< bool> -
修改设备名字
inherited
-
setHuanoidDetection(
int value, {int timeout = 5}) → Future< bool> -
设置人形检测开关
inherited
-
setHumanDetectionLevel(
int sensitive, {int timeout = 5}) → Future< bool> -
人形侦测等级
关-----0
高-----1
中-----2
低-----3
inherited
-
setMotionAlarmPlan(
{required List records, required int enable, int timeout = 5}) → Future< bool> -
inherited
-
setPriDetection(
int detection, {int timeout = 5}) → Future< bool> -
inherited
-
setPriPush(
{bool pushEnable = true, bool videoEnable = true, int videoDuration = 15, int autoRecordMode = 0, int timeout = 5}) → Future< bool> -
inherited
-
setRecordParams(
int enable, {int timeout = 5}) → Future< bool> -
实时录像
inherited
-
setReocrdPlan(
{required List records, required int enable, int timeout = 5}) → Future< bool> -
设置实时计划录像
inherited
-
setWhiteLightPlan(
{required List records, required int enable, int timeout = 5}) → Future< bool> -
inherited
-
startRecordFile(
String recordName, int offset, {int timeout = 5}) → Future< bool> -
inherited
-
startRecordLineFile(
int timestamp, int event, {int timeout = 5, int channel = 4, int frameNo = 0, int key = 0}) → Future< bool> -
inherited
-
startRecordLineFileDown(
List< RecordTimeLineDown> files, {int timeout = 5}) → Future<bool> -
inherited
-
startSoundStream(
) → Future< bool> -
inherited
-
startStream(
{required VideoResolution resolution}) → Future< bool> -
inherited
-
stopRecordFile(
{int timeout = 5}) → Future< bool> -
inherited
-
stopRecordLineFileDown(
{int timeout = 5}) → Future< bool> -
inherited
-
stopSoundStream(
) → Future< bool> -
inherited
-
stopStream(
) → Future< bool> -
inherited
-
supportbothWay(
) → bool -
inherited
-
supportG711(
) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAdminPassword(
String password, {required int userid, int timeout = 5}) → Future< bool> -
inherited
-
updateDateTime(
{int timeout = 5}) → Future< bool> -
inherited
-
updateFirmware(
String server, String file, {int timeout = 5}) → Future< bool> -
inherited
-
updateOwnerPassword(
String userId, String password, {int timeout = 5}) → Future< bool> -
inherited
-
updatePushUser(
{int timeout = 5}) → Future< bool> -
云存储授权
inherited
-
videoDoubleTap(
int width, int height, int doublex, int doubley, {int timeout = 5}) → Future< bool> -
双击坐标放大
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数据格式
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited