![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartWiFiLockDevice.h>
Properties | |
id< ThingSmartCameraType > | cameraType |
id< ThingSmartWiFiLockDeviceDelegate > | delegate |
![]() | |
NSString * | devId |
Returns the device id. More... | |
ThingSmartDeviceModel * | deviceModel |
Returns the model of basic device information. More... | |
id< ThingSmartDeviceDelegate > | delegate |
Definition at line 60 of file ThingSmartWiFiLockDevice.h.
- (void) enableMute: | (BOOL) | mute |
开启关闭静音
mute | 是否静音 |
- (void) enableMute: | (BOOL) | mute |
开启关闭静音
mute | 是否静音 |
- (void) enforceLock: | (BOOL) | needLock | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
强制反锁接口
needLock | 是否要强制繁琐 |
success | 成功回调 |
failure | 失败回调 |
- (void) enforceLock: | (BOOL) | needLock | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
强制反锁接口
needLock | 是否要强制繁琐 |
success | 成功回调 |
failure | 失败回调 |
- (void) fetchRemoteVoiceUnlockWithDevId: | (NSString *) | devId | |
success: | (ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
查询音箱密码开启状态
devId | 设备ID |
success | 成功回调 |
failure | 失败回调 |
- (void) fetchRemoteVoiceUnlockWithDevId: | (NSString *) | devId | |
success: | (ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
查询音箱密码开启状态
devId | 设备ID |
success | 成功回调 |
failure | 失败回调 |
- (void) getLatestPopupInfoWithDevId: | (NSString *) | devId | |
fileType: | (NSInteger) | fileType | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
获取最近一次的拍照封面
devId | 设备ID |
fileType | 文件类型 1. 远程开门, 2. 告警 |
success | 成功回调 |
failure | 失败回调 |
- (void) getLatestPopupInfoWithDevId: | (NSString *) | devId | |
fileType: | (NSInteger) | fileType | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
获取最近一次的拍照封面
devId | 设备ID |
fileType | 文件类型 1. 远程开门, 2. 告警 |
success | 成功回调 |
failure | 失败回调 |
- (void) getPopupPictureAddressWithDevId: | (NSString *) | devId | |
bucket: | (NSString *) | bucket | |
filePath: | (NSString *) | filePath | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
查询封面图地址
devId | 设备ID |
bucket | 文件所属的仓库 |
filePath | 封面图路径 |
success | 成功回调 |
failure | 失败回调 |
- (void) getPopupPictureAddressWithDevId: | (NSString *) | devId | |
bucket: | (NSString *) | bucket | |
filePath: | (NSString *) | filePath | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
查询封面图地址
devId | 设备ID |
bucket | 文件所属的仓库 |
filePath | 封面图路径 |
success | 成功回调 |
failure | 失败回调 |
- (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.
devId | The device ID. |
Implements ThingSmartDevice.
- (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.
devId | The device ID. |
Implements ThingSmartDevice.
- (BOOL) isMuting |
是否静音中
- (BOOL) isMuting |
是否静音中
- (BOOL) isP2pConnected |
P2P是否已连接
- (BOOL) isP2pConnected |
P2P是否已连接
- (BOOL) isP2pConnecting |
P2P是否连接中
- (BOOL) isP2pConnecting |
P2P是否连接中
- (BOOL) isPreviewOn |
是否预览成功
- (BOOL) isPreviewOn |
是否预览成功
- (BOOL) isRecording |
是否正在录制中
- (BOOL) isRecording |
是否正在录制中
- (BOOL) isSupportedSound |
设备是否支持拾音器
- (BOOL) isSupportedSound |
设备是否支持拾音器
- (BOOL) isSupportedTalk |
设备是否支持对讲
- (BOOL) isSupportedTalk |
设备是否支持对讲
- (BOOL) isTalking |
设备是否对讲中
- (BOOL) isTalking |
设备是否对讲中
- (void) p2pConnect |
建立P2P连接
- (void) p2pConnect |
建立P2P连接
- (void) p2pDisConnect |
断开P2P连接
- (void) p2pDisConnect |
断开P2P连接
- (void) remoteLockWithDevId: | (NSString *) | devId | |
open: | (BOOL) | open | |
confirm: | (BOOL) | confirm | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
远程开关门接口
devId | 设备ID |
open | 远程开门:YES 远程关门:NO |
confirm | 确认:YES 拒绝:NO |
success | 成功回调 |
failure | 失败回调 |
- (void) remoteLockWithDevId: | (NSString *) | devId | |
open: | (BOOL) | open | |
confirm: | (BOOL) | confirm | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
远程开关门接口
devId | 设备ID |
open | 远程开门:YES 远程关门:NO |
confirm | 确认:YES 拒绝:NO |
success | 成功回调 |
failure | 失败回调 |
- (void) reTakePhoto: | (BOOL) | needTake | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
重新拍照接口,防抖处理15s内别重复调用
needTake | 是否要重新拍照 |
success | 成功回调 |
failure | 失败回调 |
- (void) reTakePhoto: | (BOOL) | needTake | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
重新拍照接口,防抖处理15s内别重复调用
needTake | 是否要重新拍照 |
success | 成功回调 |
failure | 失败回调 |
- (void) setRemoteVoiceUnlockWithDevId: | (NSString *) | devId | |
open: | (BOOL) | open | |
pwd: | (NSString *) | pwd | |
success: | (ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
设置或取消音箱密码
devId | 设备ID |
open | 开关状态 |
pwd | 密码 |
success | 成功回调 |
failure | 失败回调 |
- (void) setRemoteVoiceUnlockWithDevId: | (NSString *) | devId | |
open: | (BOOL) | open | |
pwd: | (NSString *) | pwd | |
success: | (ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
设置或取消音箱密码
devId | 设备ID |
open | 开关状态 |
pwd | 密码 |
success | 成功回调 |
failure | 失败回调 |
- (UIImage *) snapShootWithRotateDirection: | (ThingSmartVideoRotateDirection) | direction | |
savedAtPath: | (NSString *) | filePath | |
thumbnilPath: | (NSString *) | thumbnilPath | |
截图并返回文件存储路径和缩略图
direction | 旋转角度 |
filePath | 指定存储目录 |
thumbnilPath | 缩略图 |
- (UIImage *) snapShootWithRotateDirection: | (ThingSmartVideoRotateDirection) | direction | |
savedAtPath: | (NSString *) | filePath | |
thumbnilPath: | (NSString *) | thumbnilPath | |
截图并返回文件存储路径和缩略图
direction | 旋转角度 |
filePath | 指定存储目录 |
thumbnilPath | 缩略图 |
- (void) startPreviewWithDefinition: | (ThingSmartCameraDefinition) | definition |
开始预览(设置清晰度)
definition | 设置清晰度。0x2:标清 0x4:高清 |
- (void) startPreviewWithDefinition: | (ThingSmartCameraDefinition) | definition |
开始预览(设置清晰度)
definition | 设置清晰度。0x2:标清 0x4:高清 |
- (void) startRecordWithRotateDirection: | (ThingSmartVideoRotateDirection) | direction | |
filePath: | (NSString *) | filePath | |
开启录制
direction | 旋转角度 |
filePath | 指定存储目录 |
- (void) startRecordWithRotateDirection: | (ThingSmartVideoRotateDirection) | direction | |
filePath: | (NSString *) | filePath | |
开启录制
direction | 旋转角度 |
filePath | 指定存储目录 |
- (void) startTalk |
开启对讲
- (void) startTalk |
开启对讲
- (void) stopPreview |
停止预览
- (void) stopPreview |
停止预览
- (void) stopRecordAndFetchPath |
停止录制并返回录制文件的路径和封面图数据
- (void) stopRecordAndFetchPath |
停止录制并返回录制文件的路径和封面图数据
- (void) stopTalk |
关闭对讲
- (void) stopTalk |
关闭对讲
- (ThingSmartCameraTalkbackMode) supportedAudioMode |
设备默认支持的对讲模式
- (ThingSmartCameraTalkbackMode) supportedAudioMode |
设备默认支持的对讲模式
|
readnonatomicstrong |
Definition at line 62 of file ThingSmartWiFiLockDevice.h.
|
readwritenonatomicweak |
Definition at line 63 of file ThingSmartWiFiLockDevice.h.