#import <ThingSmartHomeKitUtil.h>
Definition at line 19 of file ThingSmartHomeKitUtil.h.
◆ addAccessoryToHome:completionHandler: [1/2]
- (void) addAccessoryToHome: |
|
(HMHome *) |
home |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Adding accessory to designated home.
- Parameters
-
home | The designated home. |
completion | Accessory addition result call back handler. |
◆ addAccessoryToHome:completionHandler: [2/2]
- (void) addAccessoryToHome: |
|
(HMHome *) |
home |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Adding accessory to designated home.
- Parameters
-
home | The designated home. |
completion | Accessory addition result call back handler. |
◆ addAccessoryToHome:setUpViewControllerDidLoadHandler:completionHandler: [1/2]
- (void) addAccessoryToHome: |
|
(HMHome *) |
home |
setUpViewControllerDidLoadHandler: |
|
(void(^)(void)) |
viewControllerDidLoad |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Adding accessory to designated home.
- Parameters
-
home | The designated home. |
viewControllerDidLoad | HomeKit Accessory setup view controller did load. |
completion | Accessory addition result call back handler. |
◆ addAccessoryToHome:setUpViewControllerDidLoadHandler:completionHandler: [2/2]
- (void) addAccessoryToHome: |
|
(HMHome *) |
home |
setUpViewControllerDidLoadHandler: |
|
(void(^)(void)) |
viewControllerDidLoad |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Adding accessory to designated home.
- Parameters
-
home | The designated home. |
viewControllerDidLoad | HomeKit Accessory setup view controller did load. |
completion | Accessory addition result call back handler. |
◆ addAccessoryToPrimaryHomeCompletionHandler: [1/2]
- (void) addAccessoryToPrimaryHomeCompletionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
Adding accessory to primary home.
- Parameters
-
completion | Accessory addition result call back handler. |
◆ addAccessoryToPrimaryHomeCompletionHandler: [2/2]
- (void) addAccessoryToPrimaryHomeCompletionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
Adding accessory to primary home.
- Parameters
-
completion | Accessory addition result call back handler. |
◆ addAccessoryToPrimaryHomeWithSetupViewControllerDidLoadHandler:completionHandler: [1/2]
- (void) addAccessoryToPrimaryHomeWithSetupViewControllerDidLoadHandler: |
|
(void(^)(void)) |
viewControllerDidLoad |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Display the HomeKit setup code of the device when adding accessory to primary home.
- Parameters
-
viewControllerDidLoad | HomeKit Accessory setup view controller did load. |
completion | Accessory addition result call back handler. |
◆ addAccessoryToPrimaryHomeWithSetupViewControllerDidLoadHandler:completionHandler: [2/2]
- (void) addAccessoryToPrimaryHomeWithSetupViewControllerDidLoadHandler: |
|
(void(^)(void)) |
viewControllerDidLoad |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
Display the HomeKit setup code of the device when adding accessory to primary home.
- Parameters
-
viewControllerDidLoad | HomeKit Accessory setup view controller did load. |
completion | Accessory addition result call back handler. |
◆ devices [1/2]
Enumerate all Thing devices @discussion When a new home manager is created, this array is inialized as an empty array. It is not guaranteed to be filled with the list of devices, represented as ThingSmartHomeKitDevice objects, until the homeManagerDidUpdateHomes: delegate method has been invoked.
- Returns
- Find all Thing device in HomeKit.
◆ devices [2/2]
Enumerate all Thing devices @discussion When a new home manager is created, this array is inialized as an empty array. It is not guaranteed to be filled with the list of devices, represented as ThingSmartHomeKitDevice objects, until the homeManagerDidUpdateHomes: delegate method has been invoked.
- Returns
- Find all Thing device in HomeKit.
◆ devicesForHome: [1/2]
Enumerate Home devices
- Returns
- Find Home devices in HomeKit.
◆ devicesForHome: [2/2]
Enumerate Home devices
- Returns
- Find Home devices in HomeKit.
◆ devicesForHomeManager: [1/2]
Enumerate all Thing device.
- Parameters
-
manager | Any HMHomeManager object. |
- Returns
- Find all Thing device in HomeKit.
◆ devicesForHomeManager: [2/2]
Enumerate all Thing device.
- Parameters
-
manager | Any HMHomeManager object. |
- Returns
- Find all Thing device in HomeKit.
◆ homeKitDataCompletionHandler: [1/2]
When HomeKit data has loaded.
- Parameters
-
completionHandler | Call back until the homeManagerDidUpdateHomes: delegate method has been invoked. |
- Note
- If the homeManagerDidUpdateHomes: delegate method has been invoked, completionHandler will be called directly.
-
HomeKit data is empty when homeManager is created for the first time.
-
This method needs to be called once to ensure that the data can be retrieved successfully.
◆ homeKitDataCompletionHandler: [2/2]
When HomeKit data has loaded.
- Parameters
-
completionHandler | Call back until the homeManagerDidUpdateHomes: delegate method has been invoked. |
- Note
- If the homeManagerDidUpdateHomes: delegate method has been invoked, completionHandler will be called directly.
-
HomeKit data is empty when homeManager is created for the first time.
-
This method needs to be called once to ensure that the data can be retrieved successfully.
◆ homes [1/2]
Enumerate all Homes @discussion When a new home manager is created, this array is inialized as an empty array. It is not guaranteed to be filled with the list of homes, represented as HMHome objects, until the homeManagerDidUpdateHomes: delegate method has been invoked.
- Returns
- Find all Homes in HomeKit.
◆ homes [2/2]
Enumerate all Homes @discussion When a new home manager is created, this array is inialized as an empty array. It is not guaranteed to be filled with the list of homes, represented as HMHome objects, until the homeManagerDidUpdateHomes: delegate method has been invoked.
- Returns
- Find all Homes in HomeKit.
◆ homesUpdatedHandler: [1/2]
When HomeKit homes has udpated.
- Parameters
-
updateHandler | Call back handler. |
- Note
- When HomeKit homes update, will call back this handler. see <HMHomeManagerDelegate>
◆ homesUpdatedHandler: [2/2]
When HomeKit homes has udpated.
- Parameters
-
updateHandler | Call back handler. |
- Note
- When HomeKit homes update, will call back this handler. see <HMHomeManagerDelegate>
◆ primaryHome [1/2]
The primary home in HomeKit.
- Returns
- the primary home
◆ primaryHome [2/2]
The primary home in HomeKit.
- Returns
- the primary home
◆ removeAccessory:fromHome:completionHandler: [1/2]
- (void) removeAccessory: |
|
(HMAccessory *) |
accessory |
fromHome: |
|
(HMHome *) |
home |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
remove accessory from designated home.
- Parameters
-
accessory | The accessory to be removed. |
home | The designated home. |
completion | Call back handler. |
◆ removeAccessory:fromHome:completionHandler: [2/2]
- (void) removeAccessory: |
|
(HMAccessory *) |
accessory |
fromHome: |
|
(HMHome *) |
home |
completionHandler: |
|
(void(^)(NSError *__nullable error)) |
completion |
|
|
| |
remove accessory from designated home.
- Parameters
-
accessory | The accessory to be removed. |
home | The designated home. |
completion | Call back handler. |
◆ thingAndMatterDevicesForHome: [1/2]
Enumerate Home devices and Matter devices
- Returns
- Find Home devices and Matter devices in HomeKit.
◆ thingAndMatterDevicesForHome: [2/2]
Enumerate Home devices and Matter devices
- Returns
- Find Home devices and Matter devices in HomeKit.
◆ homeManager
- (HMHomeManager *) homeManager |
|
readnonatomicstrong |
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitUtil.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitUtil.h