Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCameraDPManager Class Reference

#import <ThingSmartCameraDPManager.h>

Inheritance diagram for ThingSmartCameraDPManager:

Instance Methods

(instancetype) - initWithDevice:
 
(instancetype) - initWithDeviceId:
 
(void) - addObserver:
 
(void) - removeObserver:
 
(BOOL) - isSupportDP:
 
(id) - valueForDP:
 
(void) - valueForDP:success:failure:
 
(void) - setValue:forDP:success:failure:
 
(void) - updateCachedDPs:failure:
 
(void) - pushDpValueWithHttp:dpName:success:failure:
 
(BOOL) - isSurpportDP:
 
(instancetype) - initWithDevice:
 
(instancetype) - initWithDeviceId:
 
(void) - addObserver:
 
(void) - removeObserver:
 
(BOOL) - isSupportDP:
 
(id) - valueForDP:
 
(void) - valueForDP:success:failure:
 
(void) - setValue:forDP:success:failure:
 
(void) - updateCachedDPs:failure:
 
(void) - pushDpValueWithHttp:dpName:success:failure:
 
(BOOL) - isSurpportDP:
 
(BOOL) - isSupportDPCode:
 
(BOOL) - isSupportDPCode:
 
(id) - valueForDPCode:
 
(id) - valueForDPCode:
 
(void) - valueForDPCode:success:failure:
 
(void) - valueForDPCode:success:failure:
 
(void) - setValue:forDPCode:success:failure:
 
(void) - setValue:forDPCode:success:failure:
 
(BOOL) - isNvrSubDevice
 
(BOOL) - isNvrSubDevice
 
(BOOL) - isNvrSubDeviceSupportAbilityDPCode
 
(BOOL) - isNvrSubDeviceSupportAbilityDPCode
 
(BOOL) - abilityDPCodeIsSupportDP:
 
(BOOL) - abilityDPCodeIsSupportDP:
 

Properties

NSString * deviceId
 
NSArrayobservers
 
ThingSmartDevicedevice
 
id< ThingSmartCameraDPDataSourcedataSource
 

Detailed Description

Definition at line 145 of file ThingSmartCameraDPManager.h.

Method Documentation

◆ abilityDPCodeIsSupportDP: [1/2]

- (BOOL) abilityDPCodeIsSupportDP: (ThingSmartCameraDPKey)  dpName

Provided by category ThingSmartCameraDPManager(NVR).

◆ abilityDPCodeIsSupportDP: [2/2]

- (BOOL) abilityDPCodeIsSupportDP: (ThingSmartCameraDPKey)  dpName

Provided by category ThingSmartCameraDPManager(NVR).

◆ addObserver: [1/2]

- (void) addObserver: (id< ThingSmartCameraDPObserver >)  observer

◆ addObserver: [2/2]

- (void) addObserver: (id< ThingSmartCameraDPObserver >)  observer

◆ initWithDevice: [1/2]

- (instancetype) initWithDevice: ("Use initWithDeviceId: instead")  __deprecated_msg

◆ initWithDevice: [2/2]

- (instancetype) initWithDevice: ("Use initWithDeviceId: instead")  __deprecated_msg

◆ initWithDeviceId: [1/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ initWithDeviceId: [2/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ isNvrSubDevice [1/2]

- (BOOL) isNvrSubDevice

Provided by category ThingSmartCameraDPManager(NVR).

◆ isNvrSubDevice [2/2]

- (BOOL) isNvrSubDevice

Provided by category ThingSmartCameraDPManager(NVR).

◆ isNvrSubDeviceSupportAbilityDPCode [1/2]

- (BOOL) isNvrSubDeviceSupportAbilityDPCode

Provided by category ThingSmartCameraDPManager(NVR).

◆ isNvrSubDeviceSupportAbilityDPCode [2/2]

- (BOOL) isNvrSubDeviceSupportAbilityDPCode

Provided by category ThingSmartCameraDPManager(NVR).

◆ isSupportDP: [1/2]

- (BOOL) isSupportDP: (ThingSmartCameraDPKey)  dpName

[^en] does the device support this dp [$en]

[^zh] 当前设备是否支持此dp点 [$zh]

Parameters
dpNamedpName
Returns
BOOL

◆ isSupportDP: [2/2]

- (BOOL) isSupportDP: (ThingSmartCameraDPKey)  dpName

[^en] does the device support this dp [$en]

[^zh] 当前设备是否支持此dp点 [$zh]

Parameters
dpNamedpName
Returns
BOOL

◆ isSupportDPCode: [1/2]

- (BOOL) isSupportDPCode: (ThingSmartCameraDPKey)  DPCode

Provided by category ThingSmartCameraDPManager(DPCode).

◆ isSupportDPCode: [2/2]

- (BOOL) isSupportDPCode: (ThingSmartCameraDPKey)  DPCode

Provided by category ThingSmartCameraDPManager(DPCode).

◆ isSurpportDP: [1/2]

- (BOOL) isSurpportDP: ("Use isSupportDP instead")  __deprecated_msg

◆ isSurpportDP: [2/2]

- (BOOL) isSurpportDP: ("Use isSupportDP instead")  __deprecated_msg

◆ pushDpValueWithHttp:dpName:success:failure: [1/2]

- (void) pushDpValueWithHttp: (id)  value
dpName: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

◆ pushDpValueWithHttp:dpName:success:failure: [2/2]

- (void) pushDpValueWithHttp: (id)  value
dpName: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

◆ removeObserver: [1/2]

- (void) removeObserver: (id< ThingSmartCameraDPObserver >)  observer

◆ removeObserver: [2/2]

- (void) removeObserver: (id< ThingSmartCameraDPObserver >)  observer

◆ setValue:forDP:success:failure: [1/2]

- (void) setValue: (id)  value
forDP: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

[^en] set the value of dp, if support the dp, else return nil [$en]

[^zh] 设置dp点的值,如果设备支持该dp点,否则返回nil [$zh]

Parameters
valuevalue
dpName[^en]dpName[$en] [^zh]dpName[$zh]
successsuccess callback
failurefailure callback

◆ setValue:forDP:success:failure: [2/2]

- (void) setValue: (id)  value
forDP: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

[^en] set the value of dp, if support the dp, else return nil [$en]

[^zh] 设置dp点的值,如果设备支持该dp点,否则返回nil [$zh]

Parameters
valuevalue
dpName[^en]dpName[$en] [^zh]dpName[$zh]
successsuccess callback
failurefailure callback

◆ setValue:forDPCode:success:failure: [1/2]

- (void) setValue: (id)  value
forDPCode: (ThingSmartCameraDPKey)  DPCode
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartCameraDPManager(DPCode).

◆ setValue:forDPCode:success:failure: [2/2]

- (void) setValue: (id)  value
forDPCode: (ThingSmartCameraDPKey)  DPCode
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartCameraDPManager(DPCode).

◆ updateCachedDPs:failure: [1/2]

- (void) updateCachedDPs: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

◆ updateCachedDPs:failure: [2/2]

- (void) updateCachedDPs: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

◆ valueForDP: [1/2]

- (id) valueForDP: (ThingSmartCameraDPKey)  dpName

[^en] get the value of dp, if support the dp, else return nil. [$en]

[^zh] 获取dp的值,如果支持则返回dp值,否则返回nil [$zh]

Parameters
dpNamedpName
Returns
dp value

◆ valueForDP: [2/2]

- (id) valueForDP: (ThingSmartCameraDPKey)  dpName

[^en] get the value of dp, if support the dp, else return nil. [$en]

[^zh] 获取dp的值,如果支持则返回dp值,否则返回nil [$zh]

Parameters
dpNamedpName
Returns
dp value

◆ valueForDP:success:failure: [1/2]

- (void) valueForDP: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

[^en] will publish query command to device for the dp, [$en]

[^zh] 将会 publish 查询命令到该设备的dp点 [$zh]

Parameters
dpNamedpName
successsuccess callback
failurefailure callback

◆ valueForDP:success:failure: [2/2]

- (void) valueForDP: (ThingSmartCameraDPKey)  dpName
success: (ThingSuccessID success
failure: (ThingFailureError failure 

[^en] will publish query command to device for the dp, [$en]

[^zh] 将会 publish 查询命令到该设备的dp点 [$zh]

Parameters
dpNamedpName
successsuccess callback
failurefailure callback

◆ valueForDPCode: [1/2]

- (id) valueForDPCode: (ThingSmartCameraDPKey)  DPCode

Provided by category ThingSmartCameraDPManager(DPCode).

◆ valueForDPCode: [2/2]

- (id) valueForDPCode: (ThingSmartCameraDPKey)  DPCode

Provided by category ThingSmartCameraDPManager(DPCode).

◆ valueForDPCode:success:failure: [1/2]

- (void) valueForDPCode: (ThingSmartCameraDPKey)  DPCode
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartCameraDPManager(DPCode).

◆ valueForDPCode:success:failure: [2/2]

- (void) valueForDPCode: (ThingSmartCameraDPKey)  DPCode
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartCameraDPManager(DPCode).

Property Documentation

◆ dataSource

- (id< ThingSmartCameraDPDataSource >) dataSource
readwritenonatomicweak

Definition at line 161 of file ThingSmartCameraDPManager.h.

◆ device

- (ThingSmartDevice *) device
readnonatomicstrong

Definition at line 151 of file ThingSmartCameraDPManager.h.

◆ deviceId

- (NSString *) deviceId
readnonatomicstrong

Definition at line 147 of file ThingSmartCameraDPManager.h.

◆ observers

- (NSArray *) observers
readnonatomicstrong

Definition at line 149 of file ThingSmartCameraDPManager.h.


The documentation for this class was generated from the following files: