Tuya iOS Smart Life App SDK 5.15.0
ThingSmartPerformanceGateway Class Reference

为了增强体验,高性能网关在配网完成后将子设备自动绑定到网关下,当存在多个高性能网关时则引导用户配置 More...

#import <ThingSmartPerformanceGateway.h>

Inheritance diagram for ThingSmartPerformanceGateway:

Public Types

typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo)
 
typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo)
 

Instance Methods

(BOOL) - shouldBindForSuccessActivatorDevices:
 
(typedef) - NS_ENUM
 
(typedef) - NS_ENUM
 
(void) - autoBindRoomDevicesWithRoomID:complete:
 
(void) - autoBindingGateway:subDeviceIDList:success:failure:
 ThingSmartPerformanceGatewayService 同名方法一致 More...
 
(BOOL) - shouldBindForSuccessActivatorDevices:
 
(typedef) - NS_ENUM
 
(typedef) - NS_ENUM
 
(void) - autoBindRoomDevicesWithRoomID:complete:
 
(void) - autoBindingGateway:subDeviceIDList:success:failure:
 ThingSmartPerformanceGatewayService 同名方法一致 More...
 

Public Attributes

NSString *const ThingSmartPerformanceGatewayAutoBindErrorKey
 value:NSError* __nullable 错误信息 More...
 
NSString *const ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey
 value:ThingSmartPerformanceGatewayProperty* __nonnull 网关属性 More...
 
NSString *const ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey
 value:NSArray<NSString *> * __nonnull 子设备id列表 More...
 
NSString *const ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey
 value:NSString* __nonnull miniApp URL 地址 More...
 

Detailed Description

为了增强体验,高性能网关在配网完成后将子设备自动绑定到网关下,当存在多个高性能网关时则引导用户配置

Definition at line 17 of file ThingSmartPerformanceGateway.h.

Member Typedef Documentation

◆ ThingSmartPerformanceGatewayAutoBindComplete [1/2]

- (typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo))

获取网关属性

  • Parameters:
    • actionType:ThingSmartPerformanceGatewayActionType
    • userInfo: 额外信息 ThingSmartPerformanceGatewayAutoBindErrorKey , actionTypeThingSmartPerformanceGatewayActionTypeIdle 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey actionTypeThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey actionTypeThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey, actionTypeThingSmartPerformanceGatewayActionTypeManual 时可以处理

Definition at line 59 of file ThingSmartPerformanceGateway.h.

◆ ThingSmartPerformanceGatewayAutoBindComplete [2/2]

- (typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo))

获取网关属性

  • Parameters:
    • actionType:ThingSmartPerformanceGatewayActionType
    • userInfo: 额外信息 ThingSmartPerformanceGatewayAutoBindErrorKey , actionTypeThingSmartPerformanceGatewayActionTypeIdle 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey actionTypeThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey actionTypeThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey, actionTypeThingSmartPerformanceGatewayActionTypeManual 时可以处理

Definition at line 59 of file ThingSmartPerformanceGateway.h.

Method Documentation

◆ autoBindingGateway:subDeviceIDList:success:failure: [1/2]

- (void) autoBindingGateway: (ThingSmartPerformanceGatewayProperty *)  gatewayProperty
subDeviceIDList: (NSArray< NSString * > *)  subDeviceIDList
success: (ThingSuccessBOOL __nullable)  success
failure: (ThingFailureError __nullable)  failure 

ThingSmartPerformanceGatewayService 同名方法一致

◆ autoBindingGateway:subDeviceIDList:success:failure: [2/2]

- (void) autoBindingGateway: (ThingSmartPerformanceGatewayProperty *)  gatewayProperty
subDeviceIDList: (NSArray< NSString * > *)  subDeviceIDList
success: (ThingSuccessBOOL __nullable)  success
failure: (ThingFailureError __nullable)  failure 

ThingSmartPerformanceGatewayService 同名方法一致

◆ autoBindRoomDevicesWithRoomID:complete: [1/2]

- (void) autoBindRoomDevicesWithRoomID: (ThingSmartHomeID homeID
complete: (ThingSmartPerformanceGatewayAutoBindComplete complete 

将房间下的网关与子设备进行自动绑定

  • Parameters:
    • homeID: 房间id
    • complete: 会有三种结果,1. 无法进行自动绑定 2. 满足条件自动由云端完成绑定 3. 跳转至手动绑定页面完成绑定

◆ autoBindRoomDevicesWithRoomID:complete: [2/2]

- (void) autoBindRoomDevicesWithRoomID: (ThingSmartHomeID homeID
complete: (ThingSmartPerformanceGatewayAutoBindComplete complete 

将房间下的网关与子设备进行自动绑定

  • Parameters:
    • homeID: 房间id
    • complete: 会有三种结果,1. 无法进行自动绑定 2. 满足条件自动由云端完成绑定 3. 跳转至手动绑定页面完成绑定

◆ NS_ENUM [1/4]

- (typedef) NS_ENUM (NSInteger) 
(ThingSmartPerformanceGatewayActionType)   

Definition at line 25 of file ThingSmartPerformanceGateway.h.

◆ NS_ENUM [2/4]

- (typedef) NS_ENUM (NSInteger) 
(ThingSmartPerformanceGatewayActionType)   

Definition at line 25 of file ThingSmartPerformanceGateway.h.

◆ NS_ENUM [3/4]

- (typedef) NS_ENUM (NSInteger) 
(ThingSmartPerformanceGatewayActionTypeErrorCode)   

Definition at line 31 of file ThingSmartPerformanceGateway.h.

◆ NS_ENUM [4/4]

- (typedef) NS_ENUM (NSInteger) 
(ThingSmartPerformanceGatewayActionTypeErrorCode)   

Definition at line 31 of file ThingSmartPerformanceGateway.h.

◆ shouldBindForSuccessActivatorDevices: [1/2]

- (BOOL) shouldBindForSuccessActivatorDevices: (NSArray< ThingSmartDeviceModel * > *)  successActivatorDevices

是否存在可以自动绑定的网关或子设备

  • Parameter devices: 配网成功的设备

◆ shouldBindForSuccessActivatorDevices: [2/2]

- (BOOL) shouldBindForSuccessActivatorDevices: (NSArray< ThingSmartDeviceModel * > *)  successActivatorDevices

是否存在可以自动绑定的网关或子设备

  • Parameter devices: 配网成功的设备

Member Data Documentation

◆ ThingSmartPerformanceGatewayAutoBindErrorKey

- (NSString *const) ThingSmartPerformanceGatewayAutoBindErrorKey

value:NSError* __nullable 错误信息

Definition at line 43 of file ThingSmartPerformanceGateway.h.

◆ ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey

- (NSString *const) ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey

value:NSString* __nonnull miniApp URL 地址

Definition at line 49 of file ThingSmartPerformanceGateway.h.

◆ ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey

- (NSString *const) ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey

value:ThingSmartPerformanceGatewayProperty* __nonnull 网关属性

Definition at line 45 of file ThingSmartPerformanceGateway.h.

◆ ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey

- (NSString *const) ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey

value:NSArray<NSString *> * __nonnull 子设备id列表

Definition at line 47 of file ThingSmartPerformanceGateway.h.


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