Tuya iOS Smart Life App SDK 5.15.0
ThingSmartGroup Class Reference

The group of smart devices allows you to create groups, send group commands, and update basic group information. More...

#import <ThingSmartGroup.h>

Inheritance diagram for ThingSmartGroup:

Instance Methods

(nullable instancetype) - initWithGroupId:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getDevList:success:failure:
 
(void) - publishDps:success:failure:
 
(void) - publishDpCodes:success:failure:
 
(void) - updateGroupName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateGroupRelations:success:failure:
 
(void) - dismissGroup:failure:
 
(void) - cancelRequest
 Cancels the request. More...
 
(nullable instancetype) - initWithGroupId:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getDevList:success:failure:
 
(void) - publishDps:success:failure:
 
(void) - publishDpCodes:success:failure:
 
(void) - updateGroupName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateGroupRelations:success:failure:
 
(void) - dismissGroup:failure:
 
(void) - cancelRequest
 Cancels the request. More...
 
(nullable instancetype) - initWithGroupId:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getDevList:success:failure:
 
(void) - publishDps:success:failure:
 
(void) - publishDpCodes:success:failure:
 
(void) - updateGroupName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateGroupRelations:success:failure:
 
(void) - dismissGroup:failure:
 
(void) - cancelRequest
 Cancels the request. More...
 
(nullable instancetype) - initWithGroupId:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - getDevList:success:failure:
 
(void) - publishDps:success:failure:
 
(void) - publishDpCodes:success:failure:
 
(void) - updateGroupName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateGroupRelations:success:failure:
 
(void) - dismissGroup:failure:
 
(void) - cancelRequest
 Cancels the request. More...
 
(void) - getDpCodeDevListWithSuccess:failure:
 
(void) - getDpCodeDevListWithSuccess:failure:
 
(void) - getDpCodeDevListWithSuccess:failure:
 
(void) - getDpCodeDevListWithSuccess:failure:
 
(void) - updateDpCodeGroupRelationsWithDevList:success:failure:
 
(void) - updateDpCodeGroupRelationsWithDevList:success:failure:
 
(void) - updateDpCodeGroupRelationsWithDevList:success:failure:
 
(void) - updateDpCodeGroupRelationsWithDevList:success:failure:
 
(void) - getShareGroupFromInfoWithSuccess:failure:
 
(void) - getShareGroupFromInfoWithSuccess:failure:
 
(void) - getShareGroupFromInfoWithSuccess:failure:
 
(void) - getShareGroupFromInfoWithSuccess:failure:
 
(void) - removeShareGroupWithSuccess:failure:
 
(void) - removeShareGroupWithSuccess:failure:
 
(void) - removeShareGroupWithSuccess:failure:
 
(void) - removeShareGroupWithSuccess:failure:
 

Class Methods

(nullable instancetype) + groupWithGroupId:
 
(void) + createGroupWithParams:success:failure:
 
(nullable instancetype) + groupWithGroupId:
 
(void) + createGroupWithParams:success:failure:
 
(nullable instancetype) + groupWithGroupId:
 
(void) + createGroupWithParams:success:failure:
 
(nullable instancetype) + groupWithGroupId:
 
(void) + createGroupWithParams:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure:
 
(void) + getDpCodeDevListWithHomeId:categoryCode:success:failure:
 
(void) + getDpCodeDevListWithHomeId:categoryCode:success:failure:
 
(void) + getDpCodeDevListWithHomeId:categoryCode:success:failure:
 
(void) + getDpCodeDevListWithHomeId:categoryCode:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIdList:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure:
 
(void) + createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:productId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:productId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:productId:success:failure:
 
(void) + getDpCodeDevListWithHomeId:productId:success:failure:
 
(void) + createGroupWithName:productId:homeId:devIdList:success:failure:
 
(void) + createGroupWithName:productId:homeId:devIdList:success:failure:
 
(void) + createGroupWithName:productId:homeId:devIdList:success:failure:
 
(void) + createGroupWithName:productId:homeId:devIdList:success:failure:
 
(void) + createGroupWithName:homeId:gwId:productId:success:failure:
 
(void) + createGroupWithName:homeId:gwId:productId:success:failure:
 
(void) + createGroupWithName:homeId:gwId:productId:success:failure:
 
(void) + createGroupWithName:homeId:gwId:productId:success:failure:
 
(void) + createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure:
 
(void) + createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure:
 
(void) + createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure:
 
(void) + createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure:
 
(void) + getDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getDevList:homeId:success:failure:
 
(void) + getDevList:homeId:success:failure:
 
(void) + getDevList:homeId:success:failure:
 
(void) + getDevList:homeId:success:failure:
 
(void) + getThreadDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getThreadDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getThreadDevListWithProductId:gwId:homeId:success:failure:
 
(void) + getThreadDevListWithProductId:gwId:homeId:success:failure:
 

Properties

ThingSmartGroupModelgroupModel
 Returns the basic group information model. More...
 
id< ThingSmartGroupDelegatedelegate
 

Detailed Description

The group of smart devices allows you to create groups, send group commands, and update basic group information.

You can add multiple devices with the same functions to a group and simultaneously control the devices.

Definition at line 68 of file ThingSmartGroup.h.

Method Documentation

◆ cancelRequest [1/4]

- (void) cancelRequest

Cancels the request.

◆ cancelRequest [2/4]

- (void) cancelRequest

Cancels the request.

◆ cancelRequest [3/4]

- (void) cancelRequest

Cancels the request.

◆ cancelRequest [4/4]

- (void) cancelRequest

Cancels the request.

◆ createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure: [1/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
categoryCodeThe category code.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use createDpCodeGroupWithName:homeId:devIdList:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure: [2/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
categoryCodeThe category code.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use createDpCodeGroupWithName:homeId:devIdList:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure: [3/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
categoryCodeThe category code.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use createDpCodeGroupWithName:homeId:devIdList:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:categoryCode:devIdList:success:failure: [4/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
categoryCodeThe category code.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use createDpCodeGroupWithName:homeId:devIdList:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:devIdList:success:failure: [1/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:devIdList:success:failure: [2/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:devIdList:success:failure: [3/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:devIdList:success:failure: [4/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIdList:success:failure: [1/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIdList:success:failure: [2/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIdList:success:failure: [3/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIdList:success:failure: [4/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdListA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure: [1/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdsA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure: [2/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdsA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure: [3/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdsA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createDpCodeGroupWithName:homeId:productId:devIds:meshId:success:failure: [4/4]

+ (void) createDpCodeGroupWithName: (NSString *)  name
homeId: (long long)  homeId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of standard DPCode devices.

Parameters
nameThe group name.
homeIdThe home ID.
productIdThe product ID.
devIdsA list of device IDs.
successCalled when the task is finished. ThingSmartGroup is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ createGroupWithName:homeId:gwId:productId:success:failure: [1/4]

+ (void) createGroupWithName: (NSString *)  name
homeId: (long long)  homeId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of Zigbee devices.

Parameters
nameThe group name.
homeIdThe home ID.
gwIdThe gateway ID.
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:homeId:gwId:productId:success:failure: [2/4]

+ (void) createGroupWithName: (NSString *)  name
homeId: (long long)  homeId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of Zigbee devices.

Parameters
nameThe group name.
homeIdThe home ID.
gwIdThe gateway ID.
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:homeId:gwId:productId:success:failure: [3/4]

+ (void) createGroupWithName: (NSString *)  name
homeId: (long long)  homeId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of Zigbee devices.

Parameters
nameThe group name.
homeIdThe home ID.
gwIdThe gateway ID.
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:homeId:gwId:productId:success:failure: [4/4]

+ (void) createGroupWithName: (NSString *)  name
homeId: (long long)  homeId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of Zigbee devices.

Parameters
nameThe group name.
homeIdThe home ID.
gwIdThe gateway ID.
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:productId:homeId:devIdList:success:failure: [1/4]

+ (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:productId:homeId:devIdList:success:failure: [2/4]

+ (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:productId:homeId:devIdList:success:failure: [3/4]

+ (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithName:productId:homeId:devIdList:success:failure: [4/4]

+ (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createGroupWithParams:success:failure: [1/4]

+ (void) createGroupWithParams: (ThingSmartGroupAddParams *)  groupAddParams
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
groupAddParamsThe group params
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ createGroupWithParams:success:failure: [2/4]

+ (void) createGroupWithParams: (ThingSmartGroupAddParams *)  groupAddParams
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
groupAddParamsThe group params
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ createGroupWithParams:success:failure: [3/4]

+ (void) createGroupWithParams: (ThingSmartGroupAddParams *)  groupAddParams
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
groupAddParamsThe group params
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ createGroupWithParams:success:failure: [4/4]

+ (void) createGroupWithParams: (ThingSmartGroupAddParams *)  groupAddParams
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 

Creates groups of Wi-Fi devices.

Parameters
groupAddParamsThe group params
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure: [1/4]

+ (void) createThreadGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
gwId: (NSString *)  gwId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of thread devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
gwIdThe gateway ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure: [2/4]

+ (void) createThreadGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
gwId: (NSString *)  gwId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of thread devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
gwIdThe gateway ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure: [3/4]

+ (void) createThreadGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
gwId: (NSString *)  gwId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of thread devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
gwIdThe gateway ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ createThreadGroupWithName:productId:homeId:gwId:devIdList:success:failure: [4/4]

+ (void) createThreadGroupWithName: (NSString *)  name
productId: (NSString *)  productId
homeId: (long long)  homeId
gwId: (NSString *)  gwId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 

Creates groups of thread devices.

Parameters
nameThe group name.
productIdThe product ID.
homeIdThe home ID.
gwIdThe gateway ID.
devIdListA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ dismissGroup:failure: [1/4]

- (void) dismissGroup: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Removes the group.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissGroup:failure: [2/4]

- (void) dismissGroup: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Removes the group.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissGroup:failure: [3/4]

- (void) dismissGroup: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Removes the group.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ dismissGroup:failure: [4/4]

- (void) dismissGroup: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Removes the group.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDevList:homeId:success:failure: [1/4]

+ (void) getDevList: (NSString *)  productId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that are grouped by productId.

Parameters
productIdThe product ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevList:homeId:success:failure: [2/4]

+ (void) getDevList: (NSString *)  productId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that are grouped by productId.

Parameters
productIdThe product ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevList:homeId:success:failure: [3/4]

+ (void) getDevList: (NSString *)  productId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that are grouped by productId.

Parameters
productIdThe product ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevList:homeId:success:failure: [4/4]

+ (void) getDevList: (NSString *)  productId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that are grouped by productId.

Parameters
productIdThe product ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevList:success:failure: [1/4]

- (void) getDevList: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns the device list that belongs to the specified group based on productId.

Parameters
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDevList:success:failure: [2/4]

- (void) getDevList: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns the device list that belongs to the specified group based on productId.

Parameters
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDevList:success:failure: [3/4]

- (void) getDevList: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns the device list that belongs to the specified group based on productId.

Parameters
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDevList:success:failure: [4/4]

- (void) getDevList: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns the device list that belongs to the specified group based on productId.

Parameters
productIdThe product ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getDevListWithProductId:gwId:homeId:success:failure: [1/4]

+ (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of Zigbee sub-devices that are grouped by productId and gwId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevListWithProductId:gwId:homeId:success:failure: [2/4]

+ (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of Zigbee sub-devices that are grouped by productId and gwId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevListWithProductId:gwId:homeId:success:failure: [3/4]

+ (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of Zigbee sub-devices that are grouped by productId and gwId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDevListWithProductId:gwId:homeId:success:failure: [4/4]

+ (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of Zigbee sub-devices that are grouped by productId and gwId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getDpCodeDevListWithHomeId:categoryCode:success:failure: [1/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
categoryCodeThe category code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use getDpCodeDevListWithHomeId:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:categoryCode:success:failure: [2/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
categoryCodeThe category code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use getDpCodeDevListWithHomeId:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:categoryCode:success:failure: [3/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
categoryCodeThe category code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use getDpCodeDevListWithHomeId:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:categoryCode:success:failure: [4/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
categoryCode: (NSString *)  categoryCode
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
categoryCodeThe category code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use getDpCodeDevListWithHomeId:success:failure: (ThingSmartGroup(DpCode)) instead.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:productId:success:failure: [1/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
productIdThe product ID of the device.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:productId:success:failure: [2/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
productIdThe product ID of the device.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:productId:success:failure: [3/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
productIdThe product ID of the device.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:productId:success:failure: [4/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
productIdThe product ID of the device.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:success:failure: [1/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:success:failure: [2/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:success:failure: [3/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithHomeId:success:failure: [4/4]

+ (void) getDpCodeDevListWithHomeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of Wi-Fi devices that belong to standard DPCode groups based on category codes.

Parameters
homeIdThe home ID.
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithSuccess:failure: [1/4]

- (void) getDpCodeDevListWithSuccess: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of devices that belong to the group.

Parameters
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithSuccess:failure: [2/4]

- (void) getDpCodeDevListWithSuccess: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of devices that belong to the group.

Parameters
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithSuccess:failure: [3/4]

- (void) getDpCodeDevListWithSuccess: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of devices that belong to the group.

Parameters
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getDpCodeDevListWithSuccess:failure: [4/4]

- (void) getDpCodeDevListWithSuccess: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 

Returns a list of devices that belong to the group.

Parameters
successCalled when the task is finished. A list of ThingSmartGroupDevListModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ getShareGroupFromInfoWithSuccess:failure: [1/4]

- (void) getShareGroupFromInfoWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get sharing information of the group.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ getShareGroupFromInfoWithSuccess:failure: [2/4]

- (void) getShareGroupFromInfoWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get sharing information of the group.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ getShareGroupFromInfoWithSuccess:failure: [3/4]

- (void) getShareGroupFromInfoWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get sharing information of the group.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ getShareGroupFromInfoWithSuccess:failure: [4/4]

- (void) getShareGroupFromInfoWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get sharing information of the group.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ getThreadDevListWithProductId:gwId:homeId:success:failure: [1/4]

+ (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of thread devices that are grouped by productId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getThreadDevListWithProductId:gwId:homeId:success:failure: [2/4]

+ (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of thread devices that are grouped by productId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getThreadDevListWithProductId:gwId:homeId:success:failure: [3/4]

+ (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of thread devices that are grouped by productId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ getThreadDevListWithProductId:gwId:homeId:success:failure: [4/4]

+ (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
homeId: (long long)  homeId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 

Returns a list of thread devices that are grouped by productId.

Parameters
productIdThe product ID.
gwIdThe gateway ID.
homeIdThe home ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(Home).

◆ groupWithGroupId: [1/4]

+ (nullable instancetype) groupWithGroupId: (NSString *)  groupId

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ groupWithGroupId: [2/4]

+ (nullable instancetype) groupWithGroupId: (NSString *)  groupId

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ groupWithGroupId: [3/4]

+ (nullable instancetype) groupWithGroupId: (NSString *)  groupId

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ groupWithGroupId: [4/4]

+ (nullable instancetype) groupWithGroupId: (NSString *)  groupId

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ initWithGroupId: [1/4]

- (nullable instancetype) initWithGroupId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ initWithGroupId: [2/4]

- (nullable instancetype) initWithGroupId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ initWithGroupId: [3/4]

- (nullable instancetype) initWithGroupId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ initWithGroupId: [4/4]

- (nullable instancetype) initWithGroupId: (NSString *)  NS_DESIGNATED_INITIALIZER

Returns the ThingSmartGroup instance.

Parameters
groupIdThe group ID.

◆ NS_UNAVAILABLE [1/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [3/4]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [4/4]

- (instancetype) NS_UNAVAILABLE

◆ publishDpCodes:success:failure: [1/4]

- (void) publishDpCodes: (NSDictionary *)  dpCodes
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends control commands to the group.

Parameters
dpCodesThe DP codes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDpCodes:success:failure: [2/4]

- (void) publishDpCodes: (NSDictionary *)  dpCodes
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends control commands to the group.

Parameters
dpCodesThe DP codes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDpCodes:success:failure: [3/4]

- (void) publishDpCodes: (NSDictionary *)  dpCodes
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends control commands to the group.

Parameters
dpCodesThe DP codes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDpCodes:success:failure: [4/4]

- (void) publishDpCodes: (NSDictionary *)  dpCodes
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends control commands to the group.

Parameters
dpCodesThe DP codes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDps:success:failure: [1/4]

- (void) publishDps: (NSDictionary *)  dps
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends group control commands.

Parameters
dpsThe DPs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDps:success:failure: [2/4]

- (void) publishDps: (NSDictionary *)  dps
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends group control commands.

Parameters
dpsThe DPs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDps:success:failure: [3/4]

- (void) publishDps: (NSDictionary *)  dps
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends group control commands.

Parameters
dpsThe DPs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDps:success:failure: [4/4]

- (void) publishDps: (NSDictionary *)  dps
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends group control commands.

Parameters
dpsThe DPs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeShareGroupWithSuccess:failure: [1/4]

- (void) removeShareGroupWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Remove sharing groups.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ removeShareGroupWithSuccess:failure: [2/4]

- (void) removeShareGroupWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Remove sharing groups.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ removeShareGroupWithSuccess:failure: [3/4]

- (void) removeShareGroupWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Remove sharing groups.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ removeShareGroupWithSuccess:failure: [4/4]

- (void) removeShareGroupWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Remove sharing groups.

Parameters
successCalled when the task finishes successfully.
failureIf error occurred while adding the task, this block will be called.

Provided by category ThingSmartGroup(ShareInfo).

◆ updateDpCodeGroupRelationsWithDevList:success:failure: [1/4]

- (void) updateDpCodeGroupRelationsWithDevList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies a list of devices that belong to the group.

Parameters
devListA list of devices.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ updateDpCodeGroupRelationsWithDevList:success:failure: [2/4]

- (void) updateDpCodeGroupRelationsWithDevList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies a list of devices that belong to the group.

Parameters
devListA list of devices.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ updateDpCodeGroupRelationsWithDevList:success:failure: [3/4]

- (void) updateDpCodeGroupRelationsWithDevList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies a list of devices that belong to the group.

Parameters
devListA list of devices.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ updateDpCodeGroupRelationsWithDevList:success:failure: [4/4]

- (void) updateDpCodeGroupRelationsWithDevList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies a list of devices that belong to the group.

Parameters
devListA list of devices.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartGroup(DpCode).

◆ updateGroupName:success:failure: [1/4]

- (void) updateGroupName: (NSString *)  name
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Renames the group name.

Parameters
nameThe group name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupName:success:failure: [2/4]

- (void) updateGroupName: (NSString *)  name
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Renames the group name.

Parameters
nameThe group name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupName:success:failure: [3/4]

- (void) updateGroupName: (NSString *)  name
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Renames the group name.

Parameters
nameThe group name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupName:success:failure: [4/4]

- (void) updateGroupName: (NSString *)  name
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Renames the group name.

Parameters
nameThe group name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupRelations:success:failure: [1/4]

- (void) updateGroupRelations: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies the device list of the group.

Parameters
devListThe device list.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupRelations:success:failure: [2/4]

- (void) updateGroupRelations: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies the device list of the group.

Parameters
devListThe device list.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupRelations:success:failure: [3/4]

- (void) updateGroupRelations: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies the device list of the group.

Parameters
devListThe device list.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateGroupRelations:success:failure: [4/4]

- (void) updateGroupRelations: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Modifies the device list of the group.

Parameters
devListThe device list.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIcon:success:failure: [1/4]

- (void) updateIcon: (UIImage *)  icon
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
iconThe group icon.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIcon:success:failure: [2/4]

- (void) updateIcon: (UIImage *)  icon
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
iconThe group icon.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIcon:success:failure: [3/4]

- (void) updateIcon: (UIImage *)  icon
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
iconThe group icon.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIcon:success:failure: [4/4]

- (void) updateIcon: (UIImage *)  icon
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
iconThe group icon.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIconWithCloudKey:success:failure: [1/4]

- (void) updateIconWithCloudKey: (NSString *)  cloudKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
cloudKeyThe cloud key.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIconWithCloudKey:success:failure: [2/4]

- (void) updateIconWithCloudKey: (NSString *)  cloudKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
cloudKeyThe cloud key.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIconWithCloudKey:success:failure: [3/4]

- (void) updateIconWithCloudKey: (NSString *)  cloudKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
cloudKeyThe cloud key.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateIconWithCloudKey:success:failure: [4/4]

- (void) updateIconWithCloudKey: (NSString *)  cloudKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the group icon.

Parameters
cloudKeyThe cloud key.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Property Documentation

◆ delegate

- (id< ThingSmartGroupDelegate >) delegate
readwritenonatomicweak

Definition at line 73 of file ThingSmartGroup.h.

◆ groupModel

- (ThingSmartGroupModel *) groupModel
readnonatomicstrong

Returns the basic group information model.

Definition at line 71 of file ThingSmartGroup.h.


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