Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDeviceModel(ThingSmartHomeKit) Category Reference

#import <ThingSmartDeviceModel+ThingSmartHomeKit.h>

Instance Methods

((deprecated("deprecated, use thingsdk_associatedHomeKitDeviceForHomeManager:") - __attribute__
 
(nullable ThingSmartHomeKitDevice *) - thingsdk_associatedHomeKitDeviceForHomeManager:
 
((deprecated("deprecated, use thingsdk_associatedHomeKitDeviceForHomeManager:") - __attribute__
 
(nullable ThingSmartHomeKitDevice *) - thingsdk_associatedHomeKitDeviceForHomeManager:
 

Detailed Description

Definition at line 13 of file ThingSmartDeviceModel+ThingSmartHomeKit.h.

Method Documentation

◆ __attribute__ [1/2]

- ((deprecated("deprecated, use) thingsdk_associatedHomeKitDeviceForHomeManager:

Find ThingSmartHomeKitDevice that associated with ThingSmartDeviceModel which has added in HomeKit.

Returns
If The device has been added to HomeKit and is reachable, will return associated ThingSmartHomeKitDevice. If not found , will reutrn nil.
Note
When your device has been added to HomeKit, you can invoke [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"com.apple.home://"] options:@{} completionHandler:nil];, after user clicked the Add To HomeKit button in The Device Detail page.

Extends class ThingSmartDeviceModel.

◆ __attribute__ [2/2]

- ((deprecated("deprecated, use) thingsdk_associatedHomeKitDeviceForHomeManager:

Find ThingSmartHomeKitDevice that associated with ThingSmartDeviceModel which has added in HomeKit.

Returns
If The device has been added to HomeKit and is reachable, will return associated ThingSmartHomeKitDevice. If not found , will reutrn nil.
Note
When your device has been added to HomeKit, you can invoke [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"com.apple.home://"] options:@{} completionHandler:nil];, after user clicked the Add To HomeKit button in The Device Detail page.

Extends class ThingSmartDeviceModel.

◆ thingsdk_associatedHomeKitDeviceForHomeManager: [1/2]

- (nullable ThingSmartHomeKitDevice *) thingsdk_associatedHomeKitDeviceForHomeManager: (HMHomeManager *)  homeManager

Find ThingSmartHomeKitDevice that associated with ThingSmartDeviceModel which has added in HomeKit.

Returns
If The device has been added to HomeKit and is reachable, will return associated ThingSmartHomeKitDevice. If not found , will reutrn nil.
Note
When your device has been added to HomeKit, you can invoke [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"com.apple.home://"] options:@{} completionHandler:nil];, after user clicked the Add To HomeKit button in The Device Detail page.

Extends class ThingSmartDeviceModel.

◆ thingsdk_associatedHomeKitDeviceForHomeManager: [2/2]

- (nullable ThingSmartHomeKitDevice *) thingsdk_associatedHomeKitDeviceForHomeManager: (HMHomeManager *)  homeManager

Find ThingSmartHomeKitDevice that associated with ThingSmartDeviceModel which has added in HomeKit.

Returns
If The device has been added to HomeKit and is reachable, will return associated ThingSmartHomeKitDevice. If not found , will reutrn nil.
Note
When your device has been added to HomeKit, you can invoke [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"com.apple.home://"] options:@{} completionHandler:nil];, after user clicked the Add To HomeKit button in The Device Detail page.

Extends class ThingSmartDeviceModel.


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