![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
为了增强体验,高性能网关在配网完成后将子设备自动绑定到网关下,当存在多个高性能网关时则引导用户配置 More...
#import <ThingSmartPerformanceGateway.h>
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... | |
为了增强体验,高性能网关在配网完成后将子设备自动绑定到网关下,当存在多个高性能网关时则引导用户配置
Definition at line 17 of file ThingSmartPerformanceGateway.h.
| - (typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo)) |
获取网关属性
ThingSmartPerformanceGatewayActionTypeThingSmartPerformanceGatewayAutoBindErrorKey , actionType 为 ThingSmartPerformanceGatewayActionTypeIdle 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey actionType 为 ThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey actionType 为 ThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey, actionType 为 ThingSmartPerformanceGatewayActionTypeManual 时可以处理 Definition at line 59 of file ThingSmartPerformanceGateway.h.
| - (typedef void(^ ThingSmartPerformanceGatewayAutoBindComplete) (ThingSmartPerformanceGatewayActionType actionType, NSDictionary *__nullable userInfo)) |
获取网关属性
ThingSmartPerformanceGatewayActionTypeThingSmartPerformanceGatewayAutoBindErrorKey , actionType 为 ThingSmartPerformanceGatewayActionTypeIdle 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey actionType 为 ThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey actionType 为 ThingSmartPerformanceGatewayActionTypeAuto 时可以处理 ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey, actionType 为 ThingSmartPerformanceGatewayActionTypeManual 时可以处理 Definition at line 59 of file ThingSmartPerformanceGateway.h.
| - (void) autoBindingGateway: | (ThingSmartPerformanceGatewayProperty *) | gatewayProperty | |
| subDeviceIDList: | (NSArray< NSString * > *) | subDeviceIDList | |
| success: | (ThingSuccessBOOL __nullable) | success | |
| failure: | (ThingFailureError __nullable) | failure | |
与 ThingSmartPerformanceGatewayService 同名方法一致
| - (void) autoBindingGateway: | (ThingSmartPerformanceGatewayProperty *) | gatewayProperty | |
| subDeviceIDList: | (NSArray< NSString * > *) | subDeviceIDList | |
| success: | (ThingSuccessBOOL __nullable) | success | |
| failure: | (ThingFailureError __nullable) | failure | |
与 ThingSmartPerformanceGatewayService 同名方法一致
| - (void) autoBindRoomDevicesWithRoomID: | (ThingSmartHomeID) | homeID | |
| complete: | (ThingSmartPerformanceGatewayAutoBindComplete) | complete | |
将房间下的网关与子设备进行自动绑定
| - (void) autoBindRoomDevicesWithRoomID: | (ThingSmartHomeID) | homeID | |
| complete: | (ThingSmartPerformanceGatewayAutoBindComplete) | complete | |
将房间下的网关与子设备进行自动绑定
| - (typedef) NS_ENUM | (NSInteger) | ||
| (ThingSmartPerformanceGatewayActionType) | |||
Definition at line 25 of file ThingSmartPerformanceGateway.h.
| - (typedef) NS_ENUM | (NSInteger) | ||
| (ThingSmartPerformanceGatewayActionType) | |||
Definition at line 25 of file ThingSmartPerformanceGateway.h.
| - (typedef) NS_ENUM | (NSInteger) | ||
| (ThingSmartPerformanceGatewayActionTypeErrorCode) | |||
Definition at line 31 of file ThingSmartPerformanceGateway.h.
| - (typedef) NS_ENUM | (NSInteger) | ||
| (ThingSmartPerformanceGatewayActionTypeErrorCode) | |||
Definition at line 31 of file ThingSmartPerformanceGateway.h.
| - (BOOL) shouldBindForSuccessActivatorDevices: | (NSArray< ThingSmartDeviceModel * > *) | successActivatorDevices |
是否存在可以自动绑定的网关或子设备
| - (BOOL) shouldBindForSuccessActivatorDevices: | (NSArray< ThingSmartDeviceModel * > *) | successActivatorDevices |
是否存在可以自动绑定的网关或子设备
| - (NSString *const) ThingSmartPerformanceGatewayAutoBindErrorKey |
value:NSError* __nullable 错误信息
Definition at line 43 of file ThingSmartPerformanceGateway.h.
| - (NSString *const) ThingSmartPerformanceGatewayAutoBindGatewayMiniAppURLKey |
value:NSString* __nonnull miniApp URL 地址
Definition at line 49 of file ThingSmartPerformanceGateway.h.
| - (NSString *const) ThingSmartPerformanceGatewayAutoBindGatewayPropertyKey |
value:ThingSmartPerformanceGatewayProperty* __nonnull 网关属性
Definition at line 45 of file ThingSmartPerformanceGateway.h.
| - (NSString *const) ThingSmartPerformanceGatewayAutoBindSubDeviceIDListKey |
value:NSArray<NSString *> * __nonnull 子设备id列表
Definition at line 47 of file ThingSmartPerformanceGateway.h.