Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCameraFactory Class Reference

#import <ThingSmartCameraFactory.h>

Inheritance diagram for ThingSmartCameraFactory:

Class Methods

("SDK will auto init when create camera instance") + __deprecated_msg
 
(void) + resetSocket
 
(void) + userDidLogOut
 
(NSString *) + thingSmartCameraVersion
 
(id< ThingSmartCameraType >) + cameraWithP2PType:config:delegate:
 
(id< ThingSmartCameraType >) + cameraWithP2PType:deviceId:delegate:
 
(ThingSmartCameraConfig *) + ipcConfigWithUid:localKey:configData:
 
(NSMutableArray< Class< ThingSmartCameraMaker > > *) + cameraMakers
 
(void) + registerCameraMaker:
 
("SDK will auto init when create camera instance") + __deprecated_msg
 
(void) + resetSocket
 
(void) + userDidLogOut
 
(NSString *) + thingSmartCameraVersion
 
(id< ThingSmartCameraType >) + cameraWithP2PType:config:delegate:
 
(id< ThingSmartCameraType >) + cameraWithP2PType:deviceId:delegate:
 
(ThingSmartCameraConfig *) + ipcConfigWithUid:localKey:configData:
 
(NSMutableArray< Class< ThingSmartCameraMaker > > *) + cameraMakers
 
(void) + registerCameraMaker:
 

Detailed Description

Definition at line 143 of file ThingSmartCameraFactory.h.

Method Documentation

◆ __deprecated_msg [1/2]

+ ("SDK will auto init when create camera instance") __deprecated_msg

◆ __deprecated_msg [2/2]

+ ("SDK will auto init when create camera instance") __deprecated_msg

◆ cameraMakers [1/2]

+ (NSMutableArray< Class< ThingSmartCameraMaker > > *) cameraMakers

◆ cameraMakers [2/2]

+ (NSMutableArray< Class< ThingSmartCameraMaker > > *) cameraMakers

◆ cameraWithP2PType:config:delegate: [1/2]

+ (id< ThingSmartCameraType >) cameraWithP2PType: (id)  type
config: (ThingSmartCameraConfig *)  ipcConfig
delegate: (id< ThingSmartCameraDelegate >)  delegate 

[^en] create a camera instance [$en]

[^zh] 创建一个camera实例 [$zh]

Parameters
type[^en]p2p type,pass the value of the "p2pType" field in the "skills" attribute of the "ThingSmartDeviceModel" object corresponding to the camera device.[$en] [^zh]p2p 类型,传递camera设备的"ThingSmartDeviceModel"对象的"skills"属性中的"p2pType"字段[$zh]
ipcConfigcamera config
delegatedelgate
Returns
camera instance

◆ cameraWithP2PType:config:delegate: [2/2]

+ (id< ThingSmartCameraType >) cameraWithP2PType: (id)  type
config: (ThingSmartCameraConfig *)  ipcConfig
delegate: (id< ThingSmartCameraDelegate >)  delegate 

[^en] create a camera instance [$en]

[^zh] 创建一个camera实例 [$zh]

Parameters
type[^en]p2p type,pass the value of the "p2pType" field in the "skills" attribute of the "ThingSmartDeviceModel" object corresponding to the camera device.[$en] [^zh]p2p 类型,传递camera设备的"ThingSmartDeviceModel"对象的"skills"属性中的"p2pType"字段[$zh]
ipcConfigcamera config
delegatedelgate
Returns
camera instance

◆ cameraWithP2PType:deviceId:delegate: [1/2]

+ (id< ThingSmartCameraType >) cameraWithP2PType: (id)  type
deviceId: (NSString *)  devId
delegate: (id< ThingSmartCameraDelegate >)  delegate 

[^en] create a camera instance [$en]

[^zh] 创建一个camera实例 [$zh]

Parameters
type[^en]p2p type,pass the value of the "p2pType" field in the "skills" attribute of the "ThingSmartDeviceModel" object corresponding to the camera device.[$en] [^zh]p2p 类型,传递camera设备的"ThingSmartDeviceModel"对象的"skills"属性中的"p2pType"字段[$zh]
devIddevice id
delegatedelgate
Returns
camera instance

◆ cameraWithP2PType:deviceId:delegate: [2/2]

+ (id< ThingSmartCameraType >) cameraWithP2PType: (id)  type
deviceId: (NSString *)  devId
delegate: (id< ThingSmartCameraDelegate >)  delegate 

[^en] create a camera instance [$en]

[^zh] 创建一个camera实例 [$zh]

Parameters
type[^en]p2p type,pass the value of the "p2pType" field in the "skills" attribute of the "ThingSmartDeviceModel" object corresponding to the camera device.[$en] [^zh]p2p 类型,传递camera设备的"ThingSmartDeviceModel"对象的"skills"属性中的"p2pType"字段[$zh]
devIddevice id
delegatedelgate
Returns
camera instance

◆ ipcConfigWithUid:localKey:configData: [1/2]

+ (ThingSmartCameraConfig *) ipcConfigWithUid: (NSString *)  uid
localKey: (NSString *)  localKey
configData: (NSDictionary *)  data 

[^en] create a camera config instance [$en]

[^zh] 创建一个camera配置实例 [$zh]

Parameters
uid[^en]User identifier from [ThingSmartUser sharedInstance].uid[$en] [^zh]使用 [ThingSmartUser sharedInstance].uid[$zh]
localKey[^en]from ThingSmartDeviceModel.localKey[$en] [^zh]使用 ThingSmartDeviceModel.localKey[$zh]
data[^en]the respond data of API "thing.m.ipc.config.get"[$en] [^zh]请求"thing.m.ipc.config.get" API 返回的数据[$zh]
Returns
[^en]camera config[$en] [^zh]camera config对象[$zh]

◆ ipcConfigWithUid:localKey:configData: [2/2]

+ (ThingSmartCameraConfig *) ipcConfigWithUid: (NSString *)  uid
localKey: (NSString *)  localKey
configData: (NSDictionary *)  data 

[^en] create a camera config instance [$en]

[^zh] 创建一个camera配置实例 [$zh]

Parameters
uid[^en]User identifier from [ThingSmartUser sharedInstance].uid[$en] [^zh]使用 [ThingSmartUser sharedInstance].uid[$zh]
localKey[^en]from ThingSmartDeviceModel.localKey[$en] [^zh]使用 ThingSmartDeviceModel.localKey[$zh]
data[^en]the respond data of API "thing.m.ipc.config.get"[$en] [^zh]请求"thing.m.ipc.config.get" API 返回的数据[$zh]
Returns
[^en]camera config[$en] [^zh]camera config对象[$zh]

◆ registerCameraMaker: [1/2]

+ (void) registerCameraMaker: (Class< ThingSmartCameraMaker >)  maker

◆ registerCameraMaker: [2/2]

+ (void) registerCameraMaker: (Class< ThingSmartCameraMaker >)  maker

◆ resetSocket [1/2]

+ (void) resetSocket

◆ resetSocket [2/2]

+ (void) resetSocket

◆ thingSmartCameraVersion [1/2]

+ (NSString *) thingSmartCameraVersion

[^en] get the camera sdk version [$en]

[^zh] 获取 camera sdk 版本 [$zh]

◆ thingSmartCameraVersion [2/2]

+ (NSString *) thingSmartCameraVersion

[^en] get the camera sdk version [$en]

[^zh] 获取 camera sdk 版本 [$zh]

◆ userDidLogOut [1/2]

+ (void) userDidLogOut

◆ userDidLogOut [2/2]

+ (void) userDidLogOut

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