ThingSmartScene is used to add, edit delete and execute scenes.
More...
#import <ThingSmartScene.h>
ThingSmartScene is used to add, edit delete and execute scenes.
Definition at line 15 of file ThingSmartScene.h.
◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [1/4]
+ (void) addNewSceneWithName: |
|
(NSString *) |
name |
homeId: |
|
(long long) |
homeId |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(void(^)(ThingSmartSceneModel *sceneModel)) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Add a scene by all param, (deprecated).
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead
◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [2/4]
+ (void) addNewSceneWithName: |
|
(NSString *) |
name |
homeId: |
|
(long long) |
homeId |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(void(^)(ThingSmartSceneModel *sceneModel)) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Add a scene by all param, (deprecated).
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead
◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [3/4]
+ (void) addNewSceneWithName: |
|
(NSString *) |
name |
homeId: |
|
(long long) |
homeId |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(void(^)(ThingSmartSceneModel *sceneModel)) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Add a scene by all param, (deprecated).
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead
◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [4/4]
+ (void) addNewSceneWithName: |
|
(NSString *) |
name |
homeId: |
|
(long long) |
homeId |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(void(^)(ThingSmartSceneModel *sceneModel)) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Add a scene by all param, (deprecated).
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead
◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [1/4]
Add a scene by all param
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [2/4]
Add a scene by all param
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [3/4]
Add a scene by all param
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [4/4]
Add a scene by all param
- Parameters
-
name | The scene name. |
homeId | The home id. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithSceneModel:homeId:success:failure: [1/4]
Add a new scene.Use a sceneModel with complete information of a scene.
- Parameters
-
◆ addNewSceneWithSceneModel:homeId:success:failure: [2/4]
Add a new scene.Use a sceneModel with complete information of a scene.
- Parameters
-
◆ addNewSceneWithSceneModel:homeId:success:failure: [3/4]
Add a new scene.Use a sceneModel with complete information of a scene.
- Parameters
-
◆ addNewSceneWithSceneModel:homeId:success:failure: [4/4]
Add a new scene.Use a sceneModel with complete information of a scene.
- Parameters
-
◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [1/4]
Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | The flag means need to clean sid and gid in scene extraProperty. |
homeId | The home id. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [2/4]
Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | The flag means need to clean sid and gid in scene extraProperty. |
homeId | The home id. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [3/4]
Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | The flag means need to clean sid and gid in scene extraProperty. |
homeId | The home id. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [4/4]
Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | The flag means need to clean sid and gid in scene extraProperty. |
homeId | The home id. |
success | When success return ThingSmartSceneModel. |
failure | When failure return ThingFailureError. |
◆ addScene:homeID:success:failure: [1/4]
Add a scene.
- Parameters
-
sceneInfo | The added scene attributes. |
homeID | The home ID. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ addScene:homeID:success:failure: [2/4]
Add a scene.
- Parameters
-
sceneInfo | The added scene attributes. |
homeID | The home ID. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ addScene:homeID:success:failure: [3/4]
Add a scene.
- Parameters
-
sceneInfo | The added scene attributes. |
homeID | The home ID. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ addScene:homeID:success:failure: [4/4]
Add a scene.
- Parameters
-
sceneInfo | The added scene attributes. |
homeID | The home ID. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ cancelRequest [1/4]
Cancel the request being executed.
◆ cancelRequest [2/4]
Cancel the request being executed.
◆ cancelRequest [3/4]
Cancel the request being executed.
◆ cancelRequest [4/4]
Cancel the request being executed.
◆ deleteSceneWithHomeId:success:failure: [1/4]
Delete a existed scene.
- Parameters
-
homeId | current homeId |
success | When success return ThingSuccessBOOL. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithHomeId:success:failure: [2/4]
Delete a existed scene.
- Parameters
-
homeId | current homeId |
success | When success return ThingSuccessBOOL. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithHomeId:success:failure: [3/4]
Delete a existed scene.
- Parameters
-
homeId | current homeId |
success | When success return ThingSuccessBOOL. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithHomeId:success:failure: [4/4]
Delete a existed scene.
- Parameters
-
homeId | current homeId |
success | When success return ThingSuccessBOOL. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithSuccess:failure: [1/4]
- (void) deleteSceneWithSuccess: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] |
|
|
| |
Delete a existed scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithSuccess:failure: [2/4]
- (void) deleteSceneWithSuccess: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] |
|
|
| |
Delete a existed scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithSuccess:failure: [3/4]
- (void) deleteSceneWithSuccess: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] |
|
|
| |
Delete a existed scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ deleteSceneWithSuccess:failure: [4/4]
- (void) deleteSceneWithSuccess: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] |
|
|
| |
Delete a existed scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ disableSceneWithSuccess:failure: [1/4]
Disable an automation, which will not executed automatically.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ disableSceneWithSuccess:failure: [2/4]
Disable an automation, which will not executed automatically.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ disableSceneWithSuccess:failure: [3/4]
Disable an automation, which will not executed automatically.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ disableSceneWithSuccess:failure: [4/4]
Disable an automation, which will not executed automatically.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ editScene:success:failure: [1/4]
Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.
- Parameters
-
sceneInfo | The edited scene attributes. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ editScene:success:failure: [2/4]
Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.
- Parameters
-
sceneInfo | The edited scene attributes. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ editScene:success:failure: [3/4]
Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.
- Parameters
-
sceneInfo | The edited scene attributes. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ editScene:success:failure: [4/4]
Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.
- Parameters
-
sceneInfo | The edited scene attributes. |
success | When success, return ThingSmartSceneModel object. |
failure | When error occurred, return error. |
◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [1/4]
Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [2/4]
Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [3/4]
Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [4/4]
Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
◆ enableSceneWithSuccess:failure: [1/4]
Enable an automation, which will be executed while the conditions are matched.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ enableSceneWithSuccess:failure: [2/4]
Enable an automation, which will be executed while the conditions are matched.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ enableSceneWithSuccess:failure: [3/4]
Enable an automation, which will be executed while the conditions are matched.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ enableSceneWithSuccess:failure: [4/4]
Enable an automation, which will be executed while the conditions are matched.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ executeSceneWithSuccess:failure: [1/4]
Execute a scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ executeSceneWithSuccess:failure: [2/4]
Execute a scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ executeSceneWithSuccess:failure: [3/4]
Execute a scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ executeSceneWithSuccess:failure: [4/4]
Execute a scene.
- Parameters
-
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ initWithSceneModel: [1/4]
◆ initWithSceneModel: [2/4]
◆ initWithSceneModel: [3/4]
◆ initWithSceneModel: [4/4]
◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [1/4]
- (void) modifySceneWithName: |
|
(NSString *) |
name |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Edit an existed scene with all param, (deprecated).
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.
◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [2/4]
- (void) modifySceneWithName: |
|
(NSString *) |
name |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Edit an existed scene with all param, (deprecated).
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.
◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [3/4]
- (void) modifySceneWithName: |
|
(NSString *) |
name |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Edit an existed scene with all param, (deprecated).
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.
◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [4/4]
- (void) modifySceneWithName: |
|
(NSString *) |
name |
background: |
|
(NSString *) |
background |
showFirstPage: |
|
(BOOL) |
showFirstPage |
conditionList: |
|
(NSArray< ThingSmartSceneConditionModel * > *) |
conditionList |
actionList: |
|
(NSArray< ThingSmartSceneActionModel * > *) |
actionList |
matchType: |
|
(ThingSmartConditionMatchType) |
matchType |
success: |
|
(ThingSuccessHandler) |
success |
failure: |
|
("This method is) |
deprecated |
|
|
(Use - instead") |
__deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] |
|
|
| |
Edit an existed scene with all param, (deprecated).
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
- Deprecated:
- This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.
◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [1/4]
Edit a existed scene with all param
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [2/4]
Edit a existed scene with all param
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [3/4]
Edit a existed scene with all param
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [4/4]
Edit a existed scene with all param
- Parameters
-
name | The scene name. |
background | The background image url. |
showFirstPage | Show the scene in index page or not. |
preConditionList | preconditions, like valid time period. |
conditionList | Condition list. |
actionList | Action list. |
matchType | Match all conditions/any condition will execute the automation. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [1/4]
Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | needCleanGidSid |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [2/4]
Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | needCleanGidSid |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [3/4]
Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | needCleanGidSid |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [4/4]
Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.
- Parameters
-
sceneModel | ThingSmartSceneModel |
needCleanGidSid | needCleanGidSid |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:success:failure: [1/4]
Edit a existed scene.Use a sceneModel with complete information of a scene.
- Parameters
-
sceneModel | ThingSmartSceneModel |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:success:failure: [2/4]
Edit a existed scene.Use a sceneModel with complete information of a scene.
- Parameters
-
sceneModel | ThingSmartSceneModel |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:success:failure: [3/4]
Edit a existed scene.Use a sceneModel with complete information of a scene.
- Parameters
-
sceneModel | ThingSmartSceneModel |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ modifySceneWithSceneModel:success:failure: [4/4]
Edit a existed scene.Use a sceneModel with complete information of a scene.
- Parameters
-
sceneModel | ThingSmartSceneModel |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ NS_UNAVAILABLE [1/4]
- (instancetype) NS_UNAVAILABLE |
|
|
|
Don't initialize an instance with init method.
- Returns
- This method will return an unavailable instance.
◆ NS_UNAVAILABLE [2/4]
- (instancetype) NS_UNAVAILABLE |
|
|
|
Don't initialize an instance with init method.
- Returns
- This method will return an unavailable instance.
◆ NS_UNAVAILABLE [3/4]
- (instancetype) NS_UNAVAILABLE |
|
|
|
Don't initialize an instance with init method.
- Returns
- This method will return an unavailable instance.
◆ NS_UNAVAILABLE [4/4]
- (instancetype) NS_UNAVAILABLE |
|
|
|
Don't initialize an instance with init method.
- Returns
- This method will return an unavailable instance.
◆ removeRecommendSceneWithHomeId:success:failure: [1/4]
Delete a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ removeRecommendSceneWithHomeId:success:failure: [2/4]
Delete a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ removeRecommendSceneWithHomeId:success:failure: [3/4]
Delete a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ removeRecommendSceneWithHomeId:success:failure: [4/4]
Delete a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ saveRecommendSceneWithHomeId:success:failure: [1/4]
Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ saveRecommendSceneWithHomeId:success:failure: [2/4]
Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ saveRecommendSceneWithHomeId:success:failure: [3/4]
Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ saveRecommendSceneWithHomeId:success:failure: [4/4]
Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ sceneWithSceneModel: [1/4]
◆ sceneWithSceneModel: [2/4]
◆ sceneWithSceneModel: [3/4]
◆ sceneWithSceneModel: [4/4]
◆ triggerRecommendSceneWithHomeId:success:failure: [1/4]
Execute a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ triggerRecommendSceneWithHomeId:success:failure: [2/4]
Execute a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ triggerRecommendSceneWithHomeId:success:failure: [3/4]
Execute a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
◆ triggerRecommendSceneWithHomeId:success:failure: [4/4]
Execute a recommended scene.
- Parameters
-
homeId | The home id. |
success | When success return ThingSuccessHandler. |
failure | When failure return ThingFailureError. |
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScene.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_i386_x86_64-simulator/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScene.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/ios-arm64/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScene.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_arm64_32_armv7k/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScene.h