Tuya iOS Smart Life App SDK 5.15.0
ThingSmartHomeManager Class Reference

#import <ThingSmartHomeManager.h>

Inheritance diagram for ThingSmartHomeManager:

Instance Methods

(void) - waitLoadCacheComplete:
 等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO More...
 
(BOOL) - hasHomeCache:
 查询是否有家庭缓存 More...
 
(void) - getHomeListWithSuccess:failure:
 
(void) - addHomeWithName:geoName:rooms:latitude:longitude:success:failure:
 
(void) - sortHomeList:success:failure:
 
(void) - joinFamilyWithHomeId:action:success:failure:
 
(void) - waitLoadCacheComplete:
 等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO More...
 
(BOOL) - hasHomeCache:
 查询是否有家庭缓存 More...
 
(void) - getHomeListWithSuccess:failure:
 
(void) - addHomeWithName:geoName:rooms:latitude:longitude:success:failure:
 
(void) - sortHomeList:success:failure:
 
(void) - joinFamilyWithHomeId:action:success:failure:
 
(void) - waitLoadCacheComplete:
 等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO More...
 
(BOOL) - hasHomeCache:
 查询是否有家庭缓存 More...
 
(void) - getHomeListWithSuccess:failure:
 
(void) - addHomeWithName:geoName:rooms:latitude:longitude:success:failure:
 
(void) - sortHomeList:success:failure:
 
(void) - joinFamilyWithHomeId:action:success:failure:
 
(void) - waitLoadCacheComplete:
 等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO More...
 
(BOOL) - hasHomeCache:
 查询是否有家庭缓存 More...
 
(void) - getHomeListWithSuccess:failure:
 
(void) - addHomeWithName:geoName:rooms:latitude:longitude:success:failure:
 
(void) - sortHomeList:success:failure:
 
(void) - joinFamilyWithHomeId:action:success:failure:
 

Properties

id< ThingSmartHomeManagerDelegatedelegate
 
NSArray< ThingSmartHomeModel * > * homes
 

Detailed Description

Definition at line 38 of file ThingSmartHomeManager.h.

Method Documentation

◆ addHomeWithName:geoName:rooms:latitude:longitude:success:failure: [1/4]

- (void) addHomeWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
rooms: (NSArray< NSString * > *)  rooms
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessLongLong success
failure: (ThingFailureError failure 

Adds a home.

Parameters
homeNameThe home name.
geoNameThe city name.
roomsThe rooms list.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeWithName:geoName:rooms:latitude:longitude:success:failure: [2/4]

- (void) addHomeWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
rooms: (NSArray< NSString * > *)  rooms
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessLongLong success
failure: (ThingFailureError failure 

Adds a home.

Parameters
homeNameThe home name.
geoNameThe city name.
roomsThe rooms list.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeWithName:geoName:rooms:latitude:longitude:success:failure: [3/4]

- (void) addHomeWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
rooms: (NSArray< NSString * > *)  rooms
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessLongLong success
failure: (ThingFailureError failure 

Adds a home.

Parameters
homeNameThe home name.
geoNameThe city name.
roomsThe rooms list.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addHomeWithName:geoName:rooms:latitude:longitude:success:failure: [4/4]

- (void) addHomeWithName: (NSString *)  homeName
geoName: (NSString *)  geoName
rooms: (NSArray< NSString * > *)  rooms
latitude: (double)  latitude
longitude: (double)  longitude
success: (ThingSuccessLongLong success
failure: (ThingFailureError failure 

Adds a home.

Parameters
homeNameThe home name.
geoNameThe city name.
roomsThe rooms list.
latitudeThe latitude.
longitudeThe longitude.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getHomeListWithSuccess:failure: [1/4]

- (void) getHomeListWithSuccess: (void(^)(NSArray< ThingSmartHomeModel * > *homes))  success
failure: (ThingFailureError failure 

Returns a list of homes. To get home details, initialize a home and call getHomeDetailWithSuccess: failure:.

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

◆ getHomeListWithSuccess:failure: [2/4]

- (void) getHomeListWithSuccess: (void(^)(NSArray< ThingSmartHomeModel * > *homes))  success
failure: (ThingFailureError failure 

Returns a list of homes. To get home details, initialize a home and call getHomeDetailWithSuccess: failure:.

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

◆ getHomeListWithSuccess:failure: [3/4]

- (void) getHomeListWithSuccess: (void(^)(NSArray< ThingSmartHomeModel * > *homes))  success
failure: (ThingFailureError failure 

Returns a list of homes. To get home details, initialize a home and call getHomeDetailWithSuccess: failure:.

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

◆ getHomeListWithSuccess:failure: [4/4]

- (void) getHomeListWithSuccess: (void(^)(NSArray< ThingSmartHomeModel * > *homes))  success
failure: (ThingFailureError failure 

Returns a list of homes. To get home details, initialize a home and call getHomeDetailWithSuccess: failure:.

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

◆ hasHomeCache: [1/4]

- (BOOL) hasHomeCache: (long long)  homeId

查询是否有家庭缓存

◆ hasHomeCache: [2/4]

- (BOOL) hasHomeCache: (long long)  homeId

查询是否有家庭缓存

◆ hasHomeCache: [3/4]

- (BOOL) hasHomeCache: (long long)  homeId

查询是否有家庭缓存

◆ hasHomeCache: [4/4]

- (BOOL) hasHomeCache: (long long)  homeId

查询是否有家庭缓存

◆ joinFamilyWithHomeId:action:success:failure: [1/4]

- (void) joinFamilyWithHomeId: (long long)  homeId
action: (BOOL)  isAccept
success: (ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartHome -(void) joinFamilyWithAccept:success:failure:] 

Accepts or rejects to share a home.

Parameters
homeIdThe home ID.
isAcceptSpecifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use joinFamilyWithAccept:success:failure: (ThingSmartHome) instead.

◆ joinFamilyWithHomeId:action:success:failure: [2/4]

- (void) joinFamilyWithHomeId: (long long)  homeId
action: (BOOL)  isAccept
success: (ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartHome -(void) joinFamilyWithAccept:success:failure:] 

Accepts or rejects to share a home.

Parameters
homeIdThe home ID.
isAcceptSpecifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use joinFamilyWithAccept:success:failure: (ThingSmartHome) instead.

◆ joinFamilyWithHomeId:action:success:failure: [3/4]

- (void) joinFamilyWithHomeId: (long long)  homeId
action: (BOOL)  isAccept
success: (ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartHome -(void) joinFamilyWithAccept:success:failure:] 

Accepts or rejects to share a home.

Parameters
homeIdThe home ID.
isAcceptSpecifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use joinFamilyWithAccept:success:failure: (ThingSmartHome) instead.

◆ joinFamilyWithHomeId:action:success:failure: [4/4]

- (void) joinFamilyWithHomeId: (long long)  homeId
action: (BOOL)  isAccept
success: (ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartHome -(void) joinFamilyWithAccept:success:failure:] 

Accepts or rejects to share a home.

Parameters
homeIdThe home ID.
isAcceptSpecifies whether to accept the invitation.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use joinFamilyWithAccept:success:failure: (ThingSmartHome) instead.

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

- (void) sortHomeList: (NSArray< ThingSmartHomeModel * > *)  homeList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
homeListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) sortHomeList: (NSArray< ThingSmartHomeModel * > *)  homeList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
homeListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) sortHomeList: (NSArray< ThingSmartHomeModel * > *)  homeList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
homeListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) sortHomeList: (NSArray< ThingSmartHomeModel * > *)  homeList
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sorts the homes.

Parameters
homeListA list of homes.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ waitLoadCacheComplete: [1/4]

- (void) waitLoadCacheComplete: (void(^)(BOOL complete))  blcok

等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO

◆ waitLoadCacheComplete: [2/4]

- (void) waitLoadCacheComplete: (void(^)(BOOL complete))  blcok

等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO

◆ waitLoadCacheComplete: [3/4]

- (void) waitLoadCacheComplete: (void(^)(BOOL complete))  blcok

等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO

◆ waitLoadCacheComplete: [4/4]

- (void) waitLoadCacheComplete: (void(^)(BOOL complete))  blcok

等待缓存初始化完成,如果已经加载过,直接返回成功,如果正在加载中,则等待加载完成,如果还未初始化缓存,则直接返回NO

Property Documentation

◆ delegate

- (id< ThingSmartHomeManagerDelegate >) delegate
readwritenonatomicweak

Definition at line 40 of file ThingSmartHomeManager.h.

◆ homes

- (NSArray< ThingSmartHomeModel * > *) homes
readnonatomiccopy

Definition at line 42 of file ThingSmartHomeManager.h.


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