Tuya iOS Smart Life App SDK 5.15.0
ThingSmartWiFiLockDevice Class Reference

#import <ThingSmartWiFiLockDevice.h>

Inheritance diagram for ThingSmartWiFiLockDevice:
ThingSmartDevice ThingSmartDevice

Instance Methods

(instancetype) - initWithDeviceId:
 
(void) - reTakePhoto:success:failure:
 
(void) - enforceLock:success:failure:
 
(void) - remoteLockWithDevId:open:confirm:success:failure:
 
(void) - getPopupPictureAddressWithDevId:bucket:filePath:success:failure:
 
(void) - getLatestPopupInfoWithDevId:fileType:success:failure:
 
(void) - fetchRemoteVoiceUnlockWithDevId:success:failure:
 
(void) - setRemoteVoiceUnlockWithDevId:open:pwd:success:failure:
 
(void) - p2pConnect
 建立P2P连接 More...
 
(void) - p2pDisConnect
 断开P2P连接 More...
 
(BOOL) - isP2pConnected
 P2P是否已连接 More...
 
(BOOL) - isP2pConnecting
 P2P是否连接中 More...
 
(void) - startPreviewWithDefinition:
 
(void) - stopPreview
 停止预览 More...
 
(BOOL) - isPreviewOn
 是否预览成功 More...
 
(void) - startRecordWithRotateDirection:filePath:
 
(void) - stopRecordAndFetchPath
 停止录制并返回录制文件的路径和封面图数据 More...
 
(BOOL) - isRecording
 是否正在录制中 More...
 
(UIImage *) - snapShootWithRotateDirection:savedAtPath:thumbnilPath:
 
(void) - enableMute:
 
(BOOL) - isMuting
 是否静音中 More...
 
(void) - startTalk
 开启对讲 More...
 
(void) - stopTalk
 关闭对讲 More...
 
(BOOL) - isTalking
 设备是否对讲中 More...
 
(BOOL) - isSupportedTalk
 设备是否支持对讲 More...
 
(BOOL) - isSupportedSound
 设备是否支持拾音器 More...
 
(ThingSmartCameraTalkbackMode) - supportedAudioMode
 设备默认支持的对讲模式 More...
 
(instancetype) - initWithDeviceId:
 
(void) - reTakePhoto:success:failure:
 
(void) - enforceLock:success:failure:
 
(void) - remoteLockWithDevId:open:confirm:success:failure:
 
(void) - getPopupPictureAddressWithDevId:bucket:filePath:success:failure:
 
(void) - getLatestPopupInfoWithDevId:fileType:success:failure:
 
(void) - fetchRemoteVoiceUnlockWithDevId:success:failure:
 
(void) - setRemoteVoiceUnlockWithDevId:open:pwd:success:failure:
 
(void) - p2pConnect
 建立P2P连接 More...
 
(void) - p2pDisConnect
 断开P2P连接 More...
 
(BOOL) - isP2pConnected
 P2P是否已连接 More...
 
(BOOL) - isP2pConnecting
 P2P是否连接中 More...
 
(void) - startPreviewWithDefinition:
 
(void) - stopPreview
 停止预览 More...
 
(BOOL) - isPreviewOn
 是否预览成功 More...
 
(void) - startRecordWithRotateDirection:filePath:
 
(void) - stopRecordAndFetchPath
 停止录制并返回录制文件的路径和封面图数据 More...
 
(BOOL) - isRecording
 是否正在录制中 More...
 
(UIImage *) - snapShootWithRotateDirection:savedAtPath:thumbnilPath:
 
(void) - enableMute:
 
(BOOL) - isMuting
 是否静音中 More...
 
(void) - startTalk
 开启对讲 More...
 
(void) - stopTalk
 关闭对讲 More...
 
(BOOL) - isTalking
 设备是否对讲中 More...
 
(BOOL) - isSupportedTalk
 设备是否支持对讲 More...
 
(BOOL) - isSupportedSound
 设备是否支持拾音器 More...
 
(ThingSmartCameraTalkbackMode) - supportedAudioMode
 设备默认支持的对讲模式 More...
 
- Instance Methods inherited from ThingSmartDevice
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - disconnect:
 
(void) - disconnect:
 
(void) - disconnect:
 
(void) - disconnect:
 
(ThingDoorBellError- answerDoorBellCallWithType:messageId:
 
(ThingDoorBellError- answerDoorBellCallWithType:messageId:
 
(ThingDoorBellError- hangupDoorBellCallWithType:messageId:
 
(ThingDoorBellError- hangupDoorBellCallWithType:messageId:
 
(ThingDoorBellError- sendHeartbeatWithType:messageId:
 
(ThingDoorBellError- sendHeartbeatWithType:messageId:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - requestCachedDps:failure:
 
(void) - requestCachedDps:failure:
 
(void) - pushDpsWithHttp:success:failure:
 
(void) - pushDpsWithHttp:success:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - tsod_publishDPWithCode:DPValue:success:failure:
 
(void) - tsod_publishDPWithCode:DPValue:success:failure:
 

Properties

id< ThingSmartCameraTypecameraType
 
id< ThingSmartWiFiLockDeviceDelegatedelegate
 
- Properties inherited from ThingSmartDevice
NSString * devId
 Returns the device id. More...
 
ThingSmartDeviceModeldeviceModel
 Returns the model of basic device information. More...
 
id< ThingSmartDeviceDelegatedelegate
 

Additional Inherited Members

- Class Methods inherited from ThingSmartDevice
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 

Detailed Description

Definition at line 60 of file ThingSmartWiFiLockDevice.h.

Method Documentation

◆ enableMute: [1/2]

- (void) enableMute: (BOOL)  mute

开启关闭静音

Parameters
mute是否静音

◆ enableMute: [2/2]

- (void) enableMute: (BOOL)  mute

开启关闭静音

Parameters
mute是否静音

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

- (void) enforceLock: (BOOL)  needLock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

强制反锁接口

Parameters
needLock是否要强制繁琐
success成功回调
failure失败回调

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

- (void) enforceLock: (BOOL)  needLock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

强制反锁接口

Parameters
needLock是否要强制繁琐
success成功回调
failure失败回调

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

- (void) fetchRemoteVoiceUnlockWithDevId: (NSString *)  devId
success: (ThingSuccessID success
failure: (nullable ThingFailureError failure 

查询音箱密码开启状态

Parameters
devId设备ID
success成功回调
failure失败回调

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

- (void) fetchRemoteVoiceUnlockWithDevId: (NSString *)  devId
success: (ThingSuccessID success
failure: (nullable ThingFailureError failure 

查询音箱密码开启状态

Parameters
devId设备ID
success成功回调
failure失败回调

◆ getLatestPopupInfoWithDevId:fileType:success:failure: [1/2]

- (void) getLatestPopupInfoWithDevId: (NSString *)  devId
fileType: (NSInteger)  fileType
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

获取最近一次的拍照封面

Parameters
devId设备ID
fileType文件类型 1. 远程开门, 2. 告警
success成功回调
failure失败回调

◆ getLatestPopupInfoWithDevId:fileType:success:failure: [2/2]

- (void) getLatestPopupInfoWithDevId: (NSString *)  devId
fileType: (NSInteger)  fileType
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

获取最近一次的拍照封面

Parameters
devId设备ID
fileType文件类型 1. 远程开门, 2. 告警
success成功回调
failure失败回调

◆ getPopupPictureAddressWithDevId:bucket:filePath:success:failure: [1/2]

- (void) getPopupPictureAddressWithDevId: (NSString *)  devId
bucket: (NSString *)  bucket
filePath: (NSString *)  filePath
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

查询封面图地址

Parameters
devId设备ID
bucket文件所属的仓库
filePath封面图路径
success成功回调
failure失败回调

◆ getPopupPictureAddressWithDevId:bucket:filePath:success:failure: [2/2]

- (void) getPopupPictureAddressWithDevId: (NSString *)  devId
bucket: (NSString *)  bucket
filePath: (NSString *)  filePath
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

查询封面图地址

Parameters
devId设备ID
bucket文件所属的仓库
filePath封面图路径
success成功回调
failure失败回调

◆ initWithDeviceId: [1/2]

- (instancetype) initWithDeviceId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.

Parameters
devIdThe device ID.

Implements ThingSmartDevice.

◆ initWithDeviceId: [2/2]

- (instancetype) initWithDeviceId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.

Parameters
devIdThe device ID.

Implements ThingSmartDevice.

◆ isMuting [1/2]

- (BOOL) isMuting

是否静音中

◆ isMuting [2/2]

- (BOOL) isMuting

是否静音中

◆ isP2pConnected [1/2]

- (BOOL) isP2pConnected

P2P是否已连接

◆ isP2pConnected [2/2]

- (BOOL) isP2pConnected

P2P是否已连接

◆ isP2pConnecting [1/2]

- (BOOL) isP2pConnecting

P2P是否连接中

◆ isP2pConnecting [2/2]

- (BOOL) isP2pConnecting

P2P是否连接中

◆ isPreviewOn [1/2]

- (BOOL) isPreviewOn

是否预览成功

◆ isPreviewOn [2/2]

- (BOOL) isPreviewOn

是否预览成功

◆ isRecording [1/2]

- (BOOL) isRecording

是否正在录制中

◆ isRecording [2/2]

- (BOOL) isRecording

是否正在录制中

◆ isSupportedSound [1/2]

- (BOOL) isSupportedSound

设备是否支持拾音器

◆ isSupportedSound [2/2]

- (BOOL) isSupportedSound

设备是否支持拾音器

◆ isSupportedTalk [1/2]

- (BOOL) isSupportedTalk

设备是否支持对讲

◆ isSupportedTalk [2/2]

- (BOOL) isSupportedTalk

设备是否支持对讲

◆ isTalking [1/2]

- (BOOL) isTalking

设备是否对讲中

◆ isTalking [2/2]

- (BOOL) isTalking

设备是否对讲中

◆ p2pConnect [1/2]

- (void) p2pConnect

建立P2P连接

◆ p2pConnect [2/2]

- (void) p2pConnect

建立P2P连接

◆ p2pDisConnect [1/2]

- (void) p2pDisConnect

断开P2P连接

◆ p2pDisConnect [2/2]

- (void) p2pDisConnect

断开P2P连接

◆ remoteLockWithDevId:open:confirm:success:failure: [1/2]

- (void) remoteLockWithDevId: (NSString *)  devId
open: (BOOL)  open
confirm: (BOOL)  confirm
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

远程开关门接口

Parameters
devId设备ID
open远程开门:YES 远程关门:NO
confirm确认:YES 拒绝:NO
success成功回调
failure失败回调

◆ remoteLockWithDevId:open:confirm:success:failure: [2/2]

- (void) remoteLockWithDevId: (NSString *)  devId
open: (BOOL)  open
confirm: (BOOL)  confirm
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

远程开关门接口

Parameters
devId设备ID
open远程开门:YES 远程关门:NO
confirm确认:YES 拒绝:NO
success成功回调
failure失败回调

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

- (void) reTakePhoto: (BOOL)  needTake
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

重新拍照接口,防抖处理15s内别重复调用

Parameters
needTake是否要重新拍照
success成功回调
failure失败回调

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

- (void) reTakePhoto: (BOOL)  needTake
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

重新拍照接口,防抖处理15s内别重复调用

Parameters
needTake是否要重新拍照
success成功回调
failure失败回调

◆ setRemoteVoiceUnlockWithDevId:open:pwd:success:failure: [1/2]

- (void) setRemoteVoiceUnlockWithDevId: (NSString *)  devId
open: (BOOL)  open
pwd: (NSString *)  pwd
success: (ThingSuccessID success
failure: (nullable ThingFailureError failure 

设置或取消音箱密码

Parameters
devId设备ID
open开关状态
pwd密码
success成功回调
failure失败回调

◆ setRemoteVoiceUnlockWithDevId:open:pwd:success:failure: [2/2]

- (void) setRemoteVoiceUnlockWithDevId: (NSString *)  devId
open: (BOOL)  open
pwd: (NSString *)  pwd
success: (ThingSuccessID success
failure: (nullable ThingFailureError failure 

设置或取消音箱密码

Parameters
devId设备ID
open开关状态
pwd密码
success成功回调
failure失败回调

◆ snapShootWithRotateDirection:savedAtPath:thumbnilPath: [1/2]

- (UIImage *) snapShootWithRotateDirection: (ThingSmartVideoRotateDirection)  direction
savedAtPath: (NSString *)  filePath
thumbnilPath: (NSString *)  thumbnilPath 

截图并返回文件存储路径和缩略图

Parameters
direction旋转角度
filePath指定存储目录
thumbnilPath缩略图

◆ snapShootWithRotateDirection:savedAtPath:thumbnilPath: [2/2]

- (UIImage *) snapShootWithRotateDirection: (ThingSmartVideoRotateDirection)  direction
savedAtPath: (NSString *)  filePath
thumbnilPath: (NSString *)  thumbnilPath 

截图并返回文件存储路径和缩略图

Parameters
direction旋转角度
filePath指定存储目录
thumbnilPath缩略图

◆ startPreviewWithDefinition: [1/2]

- (void) startPreviewWithDefinition: (ThingSmartCameraDefinition)  definition

开始预览(设置清晰度)

Parameters
definition设置清晰度。0x2:标清 0x4:高清

◆ startPreviewWithDefinition: [2/2]

- (void) startPreviewWithDefinition: (ThingSmartCameraDefinition)  definition

开始预览(设置清晰度)

Parameters
definition设置清晰度。0x2:标清 0x4:高清

◆ startRecordWithRotateDirection:filePath: [1/2]

- (void) startRecordWithRotateDirection: (ThingSmartVideoRotateDirection)  direction
filePath: (NSString *)  filePath 

开启录制

Parameters
direction旋转角度
filePath指定存储目录

◆ startRecordWithRotateDirection:filePath: [2/2]

- (void) startRecordWithRotateDirection: (ThingSmartVideoRotateDirection)  direction
filePath: (NSString *)  filePath 

开启录制

Parameters
direction旋转角度
filePath指定存储目录

◆ startTalk [1/2]

- (void) startTalk

开启对讲

◆ startTalk [2/2]

- (void) startTalk

开启对讲

◆ stopPreview [1/2]

- (void) stopPreview

停止预览

◆ stopPreview [2/2]

- (void) stopPreview

停止预览

◆ stopRecordAndFetchPath [1/2]

- (void) stopRecordAndFetchPath

停止录制并返回录制文件的路径和封面图数据

◆ stopRecordAndFetchPath [2/2]

- (void) stopRecordAndFetchPath

停止录制并返回录制文件的路径和封面图数据

◆ stopTalk [1/2]

- (void) stopTalk

关闭对讲

◆ stopTalk [2/2]

- (void) stopTalk

关闭对讲

◆ supportedAudioMode [1/2]

- (ThingSmartCameraTalkbackMode) supportedAudioMode

设备默认支持的对讲模式

◆ supportedAudioMode [2/2]

- (ThingSmartCameraTalkbackMode) supportedAudioMode

设备默认支持的对讲模式

Property Documentation

◆ cameraType

- (id< ThingSmartCameraType >) cameraType
readnonatomicstrong

Definition at line 62 of file ThingSmartWiFiLockDevice.h.

◆ delegate

- (id< ThingSmartWiFiLockDeviceDelegate >) delegate
readwritenonatomicweak

Definition at line 63 of file ThingSmartWiFiLockDevice.h.


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